From: Andreas Schneider Date: Thu, 7 Dec 2017 16:55:34 +0000 (+0100) Subject: s4:client: Fix size types X-Git-Tag: talloc-2.1.12~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4630e06334c157639eaf6ae0858f491ca4fc1dad;p=thirdparty%2Fsamba.git s4:client: Fix size types This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/client/client.c b/source4/client/client.c index e04aa25d69b..f73d9f99d20 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -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;