[cifs-utils PATCH] cifs.upcall: convert several flags from int to bool
Jeff Layton
jlayton at samba.org
Mon Feb 13 14:46:59 UTC 2017
Signed-off-by: Jeff Layton <jlayton at samba.org>
---
cifs.upcall.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/cifs.upcall.c b/cifs.upcall.c
index cc9ecf0d1fed..e94087cec9dd 100644
--- a/cifs.upcall.c
+++ b/cifs.upcall.c
@@ -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:
--
2.9.3
More information about the samba-technical
mailing list