s3:passdb: Fix size types
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 17:48:45 +0000 (18:48 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:16 +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>
source3/passdb/pdb_ldap.c

index c495448dcc57ef3314cd87ba7ac3ef13f8d92786..bf9377c88d3bdd9769f8d8f454e021bbfcbebc9d 100644 (file)
@@ -4103,7 +4103,8 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods,
        LDAPMessage *msg = NULL;
        LDAPMessage *entry;
        char *allsids = NULL;
-       int i, rc, num_mapped;
+       size_t i, num_mapped;
+       int rc;
        NTSTATUS result = NT_STATUS_NO_MEMORY;
        TALLOC_CTX *mem_ctx;
        LDAP *ld;