]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libads: Use size_t counts inside cldap_ping_list().
authorJeremy Allison <jra@samba.org>
Tue, 8 Sep 2020 23:00:27 +0000 (16:00 -0700)
committerNoel Power <npower@samba.org>
Tue, 15 Sep 2020 10:09:37 +0000 (10:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
source3/libads/ldap.c

index 593af18d91896cc726ab4bac8c330d3ba0d039a4..1c3677797d94665710ce5ccbe2242770ddc2e022 100755 (executable)
@@ -349,9 +349,9 @@ static bool ads_try_connect(ADS_STRUCT *ads, bool gc,
 static NTSTATUS cldap_ping_list(ADS_STRUCT *ads,
                        const char *domain,
                        struct ip_service *ip_list,
-                       int count)
+                       size_t count)
 {
-       int i;
+       size_t i;
        bool ok;
 
        for (i = 0; i < count; i++) {