]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:cldap_server: Fix size types
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 16:43:58 +0000 (17:43 +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/cldap_server/cldap_server.c

index 3f845c7e2401f54319d3452a2b0453648c576e1f..a0cde776550bebe0b9131bd01504b5aa207af675 100644 (file)
@@ -154,7 +154,7 @@ static NTSTATUS cldapd_startup_interfaces(struct cldapd_server *cldapd, struct l
        /* if we are allowing incoming packets from any address, then
           we need to bind to the wildcard address */
        if (!lpcfg_bind_interfaces_only(lp_ctx)) {
-               int num_binds = 0;
+               size_t num_binds = 0;
                char **wcard = iface_list_wildcard(cldapd);
                NT_STATUS_HAVE_NO_MEMORY(wcard);
                for (i=0; wcard[i]; i++) {