diff options
author | Andreas Schneider <asn@samba.org> | 2017-12-07 17:55:34 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-03-20 23:16:15 +0100 |
commit | 4630e06334c157639eaf6ae0858f491ca4fc1dad (patch) | |
tree | 694f7707e2b97c06fc30b61d87255b1dd76759c8 /source4/client | |
parent | f5fd615cbf727663ad082176511dfad90969083d (diff) | |
download | samba-4630e06334c157639eaf6ae0858f491ca4fc1dad.tar.gz |
s4:client: Fix size types
This fixes compilation with -Wstrict-overflow=2
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/client')
-rw-r--r-- | source4/client/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |