messaging4: Fix signed/unsigned hickups
authorVolker Lendecke <vl@samba.org>
Sat, 24 Sep 2016 01:43:04 +0000 (18:43 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 22:06:21 +0000 (00:06 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/lib/messaging/messaging.c

index d0beef662410f679e143a4e835dd0fa4996bd70c..c0b64be0f58a815079f050aa51daa4084d835fab 100644 (file)
@@ -149,7 +149,7 @@ NTSTATUS imessaging_register(struct imessaging_context *msg, void *private_data,
        /* possibly expand dispatch array */
        if (msg_type >= msg->num_types) {
                struct dispatch_fn **dp;
-               int i;
+               uint32_t i;
                dp = talloc_realloc(msg, msg->dispatch, struct dispatch_fn *, msg_type+1);
                NT_STATUS_HAVE_NO_MEMORY(dp);
                msg->dispatch = dp;
@@ -728,7 +728,7 @@ static int all_servers_func(const char *name, unsigned num_servers,
        struct irpc_name_records *name_records = talloc_get_type(
                private_data, struct irpc_name_records);
        struct irpc_name_record *name_record;
-       int i;
+       uint32_t i;
 
        name_records->names
                = talloc_realloc(name_records, name_records->names,