s3:rpcclient: Fix size types
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 18:21:38 +0000 (19:21 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:16 +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>
source3/rpcclient/rpcclient.c

index 4eb1e145715252f4977c8bcc154e3f59a619a5a5..b4e25e6e479222fc082c2eab1337a5d8a2f37652 100644 (file)
@@ -73,7 +73,7 @@ static char **completion_fn(const char *text, int start, int end)
 {
 #define MAX_COMPLETIONS 1000
        char **matches;
-       int i, count=0;
+       size_t i, count=0;
        struct cmd_list *commands = cmd_list;
 
 #if 0  /* JERRY */