s4:rpc_server: Fix size types
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 16:48:00 +0000 (17:48 +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/rpc_server/dcerpc_server.c

index a80d120f938c032575d516d14dd73cbcfcba184e..3f348376064631b3fab3e8ea06c6f363d272a161 100644 (file)
@@ -3088,8 +3088,8 @@ static NTSTATUS dcesrv_add_ep_tcp(struct dcesrv_context *dce_ctx,
                }
        } else {
                char **wcard;
-               int i;
-               int num_binds = 0;
+               size_t i;
+               size_t num_binds = 0;
                wcard = iface_list_wildcard(dce_ctx);
                NT_STATUS_HAVE_NO_MEMORY(wcard);
                for (i=0; wcard[i]; i++) {