net: Align a few integer types
authorVolker Lendecke <vl@samba.org>
Sun, 16 Jan 2022 19:51:51 +0000 (20:51 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jan 2022 20:22:38 +0000 (20:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/net_registry_check.c

index c7f0091bf6a1f5bd38d8a5a0dc02bd661345a38c..d227ffa5ae362d258f19a1acbc7a9903bfebb1ec 100644 (file)
@@ -948,7 +948,7 @@ static bool
 write_subkeylist(struct db_context *db, struct regkey *key, char sep)
 {
        cbuf *buf = cbuf_new(talloc_tos());
-       int i;
+       size_t i;
        bool ret;
 
        cbuf_putdw(buf, key->nsubkeys);
@@ -977,7 +977,7 @@ static bool write_sorted(struct db_context *db, struct regkey *key, char sep)
 {
        cbuf *buf = cbuf_new(talloc_tos());
        char *path;
-       int i;
+       size_t i;
        bool ret = false;
        char **sorted = talloc_zero_array(buf, char*, key->nsubkeys);
        int offset =  (1 + key->nsubkeys) * sizeof(uint32_t);
@@ -1014,7 +1014,7 @@ static bool write_values(struct db_context *db, struct regkey *key, char sep)
 {
        cbuf *buf = cbuf_new(talloc_tos());
        char *path;
-       int i;
+       size_t i;
        bool ret = false;
 
        cbuf_putdw(buf, key->nvalues);