From: Andreas Schneider Date: Thu, 7 Dec 2017 17:48:45 +0000 (+0100) Subject: s3:passdb: Fix size types X-Git-Tag: talloc-2.1.12~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db31156dafbf4d2eebb171857df8814af230f896;p=thirdparty%2Fsamba.git s3:passdb: Fix size types This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index c495448dcc5..bf9377c88d3 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -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;