s4:client: Fix size types
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 16:55:34 +0000 (17:55 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:15 +0000 (23:16 +0100)
This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/client/client.c

index e04aa25d69bb2e04c02fe7b6ee41110bd163a911..f73d9f99d20871277a7570ddeb4a92fb95ffdb6f 100644 (file)
@@ -2849,10 +2849,10 @@ static struct
   ******************************************************************/
 static int process_tok(const char *tok)
 {
-       int i = 0, matches = 0;
-       int cmd=0;
-       int tok_len = strlen(tok);
-       
+       size_t i = 0, matches = 0;
+       size_t cmd=0;
+       size_t tok_len = strlen(tok);
+
        while (commands[i].fn != NULL) {
                if (strequal(commands[i].name,tok)) {
                        matches = 1;