ldb: Fix some signed/unsigned hickups
authorVolker Lendecke <vl@samba.org>
Thu, 11 Aug 2016 13:46:49 +0000 (15:46 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 11 Aug 2016 21:49:38 +0000 (23:49 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug 11 23:49:38 CEST 2016 on sn-devel-144

lib/ldb/common/ldb_pack.c

index cc3a552758386d7c9116535171ae7b6fb73a9549..7e6dd2d55d330bd275bd704fce243a79c2d7c0ce 100644 (file)
@@ -185,8 +185,7 @@ static bool ldb_consume_element_data(uint8_t **pp, size_t *premaining)
        unsigned int remaining = *premaining;
        uint8_t *p = *pp;
        uint32_t num_values = pull_uint32(p, 0);
-       uint32_t len;
-       int j;
+       uint32_t j, len;
 
        p += 4;
        if (remaining < 4) {
@@ -348,7 +347,7 @@ int ldb_unpack_data_only_attr_list_flags(struct ldb_context *ldb,
                 */
                if (list_size != 0) {
                        bool keep = false;
-                       int h;
+                       unsigned int h;
 
                        /*
                         * We know that p has a \0 terminator before the