ldb: Fix a signed/unsigned mixup
authorVolker Lendecke <vl@samba.org>
Mon, 17 Oct 2016 19:40:25 +0000 (21:40 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 18 Oct 2016 23:26:14 +0000 (01:26 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/ldb/ldb_tdb/ldb_index.c

index 79241721c9f1562ce925fcd7eed61332b94778de..53fcde5a31d5f342210a3f7a09cdaba4087d8eda 100644 (file)
@@ -1210,7 +1210,8 @@ static int ltdb_index_add_el(struct ldb_module *module, const char *dn,
   add index entries for all elements in a message
  */
 static int ltdb_index_add_all(struct ldb_module *module, const char *dn,
-                             struct ldb_message_element *elements, int num_el,
+                             struct ldb_message_element *elements,
+                             unsigned int num_el,
                              bool is_new)
 {
        struct ltdb_private *ltdb = talloc_get_type(ldb_module_get_private(module), struct ltdb_private);