1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +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>
This commit is contained in:
Jakub Jelen
2024-08-09 17:17:14 +02:00
parent 7e4ea0d111
commit 41d370864e
2 changed files with 8 additions and 8 deletions

View File

@ -729,7 +729,7 @@ static void torture_auth_agent_identities_only(void **state)
char bob_ssh_key[1024];
struct passwd *pwd = NULL;
int rc;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
pwd = getpwnam("bob");
@ -786,7 +786,7 @@ static void torture_auth_agent_identities_only_protected(void **state)
char bob_ssh_key[1024];
struct passwd *pwd;
int rc;
int identities_only = 1;
bool identities_only = true;
char *id = NULL;
pwd = getpwnam("bob");