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

index 9128c626cb9f1c59b7b0985705a758ca34814984..5c6aca56207426178b3b4a4bc34467226c562e81 100644 (file)
@@ -687,7 +687,7 @@ static NTSTATUS dns_startup_interfaces(struct dns_server *dns,
                                       struct interface *ifaces,
                                       const struct model_ops *model_ops)
 {
-       int num_interfaces;
+       size_t num_interfaces;
        TALLOC_CTX *tmp_ctx = talloc_new(dns);
        NTSTATUS status;
        int i;
@@ -704,7 +704,7 @@ static NTSTATUS dns_startup_interfaces(struct dns_server *dns,
                        NT_STATUS_NOT_OK_RETURN(status);
                }
        } else {
-               int num_binds = 0;
+               size_t num_binds = 0;
                char **wcard;
                wcard = iface_list_wildcard(tmp_ctx);
                if (wcard == NULL) {