diff options
author | Jeff Layton <jlayton@samba.org> | 2017-02-12 09:36:12 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2017-02-14 18:43:23 -0500 |
commit | fb7693c50e99f2153500bb3590602993016051b4 (patch) | |
tree | c839add1344a354bca518a25d4171197ff79e562 | |
parent | d73a52e50d43f07638f34cb860e9824a932508b8 (diff) | |
download | cifs-utils-fb7693c50e99f2153500bb3590602993016051b4.tar.gz cifs-utils-fb7693c50e99f2153500bb3590602993016051b4.tar.bz2 cifs-utils-fb7693c50e99f2153500bb3590602993016051b4.zip |
cifs.upcall: convert two flags from int to bool
Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r-- | cifs.upcall.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c index 8f146c9..418b179 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -685,7 +685,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; + int c; + bool try_dns = false, legacy_uid = false; char *buf; char hostbuf[NI_MAXHOST], *host; struct decoded_args arg; @@ -705,7 +706,7 @@ int main(const int argc, char *const argv[]) /* legacy option -- skip it */ break; case 't': - try_dns++; + try_dns = true; break; case 'k': if (setenv("KRB5_CONFIG", optarg, 1) != 0) { @@ -717,7 +718,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; @@ -899,7 +900,7 @@ retry_new_hostname: if (rc) break; - try_dns = 0; + try_dns = false; host = hostbuf; goto retry_new_hostname; default: |