cifs.upcall: convert several flags from int to bool
Subsystems (2)
PATCH 1/1 cifs.upcall: convert several flags from int to bool
Signed-off-by Jeff Layton <[email protected]>
--- cifs.upcall.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
cifs.upcall.c +6 -5
@@ -810,7 +810,8 @@ int main(const int argc, char *const argv[])size_t datalen;unsigned int have;long rc =1 ; -int c, try_dns =0 , legacy_uid =0 , env_probe =0 ; +int c; +bool try_dns = false, legacy_uid = false, env_probe = false;char *buf;char hostbuf[NI_MAXHOST ], *host;struct decoded_args arg;
@@ -833,10 +834,10 @@ int main(const int argc, char *const argv[])break ;case 'e' :/* do an environmental probe to get the credcache */ - env_probe++; + env_probe = true;break ;case 't' : - try_dns++; + try_dns = true;break ;case 'k' :if (setenv ("KRB5_CONFIG" , optarg,1 ) !=0 ) {
@@ -848,7 +849,7 @@ int main(const int argc, char *const argv[]) keytab_name = optarg;break ;case 'l' : - legacy_uid++; + legacy_uid = true;break ;case 'v' : rc =0 ;
@@ -1071,7 +1072,7 @@ retry_new_hostname:if (rc)break ; - try_dns =0 ; + try_dns = false; host = hostbuf; goto retry_new_hostname;default :
Signature · 1 line
2.9.3