[cifs-utils PATCH] cifs.upcall: convert several flags from int to bool

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[cifs-utils PATCH] cifs.upcall: convert several flags from int to bool

Samba - General mailing list
Signed-off-by: Jeff Layton <[hidden email]>
---
 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


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba