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

index 5f7efe90bba6f6a5c289c3c6f18ea3629b754710..91e5d05b7fe9cc159ca17413721eaac7a0b6616e 100644 (file)
@@ -1178,8 +1178,8 @@ static void ldapsrv_task_init(struct task_server *task)
                }
        } else {
                char **wcard;
-               int i;
-               int num_binds = 0;
+               size_t i;
+               size_t num_binds = 0;
                wcard = iface_list_wildcard(task);
                if (wcard == NULL) {
                        DEBUG(0,("No wildcard addresses available\n"));