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:
@ -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");
|
||||
|
Reference in New Issue
Block a user