1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

tests: Be explicit about types.

Casting int to bool might not always work as expected

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 41d370864e)
This commit is contained in:
Jakub Jelen
2024-08-09 17:17:14 +02:00
parent 5318ddaabc
commit dd38f523e1
2 changed files with 8 additions and 8 deletions

View File

@ -587,7 +587,7 @@ torture_auth_agent_cert_identities_only(void **state)
ssh_session session = s->ssh.session;
char doe_ssh_key[1024];
struct passwd *pwd = NULL;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
int rc;
@ -646,7 +646,7 @@ torture_auth_agent_cert_identities_only_nonblocking(void **state)
ssh_session session = s->ssh.session;
char doe_ssh_key[1024];
struct passwd *pwd = NULL;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
int rc;
@ -750,7 +750,7 @@ torture_auth_agent_cert_identities_only_explicit(void **state)
char doe_ssh_key[1024];
char doe_ssh_cert[1024];
struct passwd *pwd = NULL;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
int rc;
@ -815,7 +815,7 @@ torture_auth_agent_cert_identities_only_nonblocking_explicit(void **state)
char doe_ssh_key[1024];
char doe_ssh_cert[1024];
struct passwd *pwd = NULL;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
int rc;
@ -887,7 +887,7 @@ torture_auth_agent_cert_only_identities_only(void **state)
ssh_session session = s->ssh.session;
char doe_ssh_cert[1024];
struct passwd *pwd = NULL;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
int rc;
@ -945,7 +945,7 @@ torture_auth_agent_cert_only_identities_only_nonblocking(void **state)
ssh_session session = s->ssh.session;
char doe_ssh_cert[1024];
struct passwd *pwd = NULL;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
int rc;