tldap: Use "size_t" for talloc_array_length result
authorVolker Lendecke <vl@samba.org>
Sun, 10 Jan 2016 10:29:40 +0000 (11:29 +0100)
committerRalph Boehme <slow@samba.org>
Sun, 10 Jan 2016 21:24:17 +0000 (22:24 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/tldap.c

index 9732fd6a04048ac8395408277a45044cef8325ba..85d3d478e817ddb2eb750438f685ceaa8764f9ec 100644 (file)
@@ -168,7 +168,7 @@ bool tldap_connection_ok(struct tldap_context *ld)
 static struct tldap_ctx_attribute *tldap_context_findattr(
        struct tldap_context *ld, const char *name)
 {
-       int i, num_attrs;
+       size_t i, num_attrs;
 
        num_attrs = talloc_array_length(ld->ctx_attrs);