]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Change num_groups from int to uint32_t in wb_query_group_list_recv()
authorPavel Filipenský <pfilipen@redhat.com>
Thu, 14 Jul 2022 11:19:44 +0000 (13:19 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 15 Jul 2022 14:25:38 +0000 (14:25 +0000)
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/wb_query_group_list.c
source3/winbindd/winbindd_proto.h

index 4c6f1ee778d6fd18f8941ab2181066e61dc172d9..e7c1f734e09417ca65b9f67d20fb848268664557 100644 (file)
@@ -73,7 +73,7 @@ static void wb_query_group_list_done(struct tevent_req *subreq)
 }
 
 NTSTATUS wb_query_group_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
-                                 int *num_groups,
+                                 uint32_t *num_groups,
                                  struct wbint_Principal **groups)
 {
        struct wb_query_group_list_state *state = tevent_req_data(
@@ -88,6 +88,7 @@ NTSTATUS wb_query_group_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
        *num_groups = state->groups.num_principals;
        *groups = talloc_move(mem_ctx, &state->groups.principals);
 
-       D_INFO("WB command group_list end.\nReturning %d group(s).\n", *num_groups);
+       D_INFO("WB command group_list end.\n"
+              "Returning %u group(s).\n", *num_groups);
        return NT_STATUS_OK;
 }
index 870112b3c0ffc9e840f01c57371803d84169a080..0da731d564decbd0d2335914b1d9a7ddf47fee0a 100644 (file)
@@ -758,7 +758,7 @@ struct tevent_req *wb_query_group_list_send(TALLOC_CTX *mem_ctx,
                                            struct tevent_context *ev,
                                            struct winbindd_domain *domain);
 NTSTATUS wb_query_group_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
-                                 int *num_users,
+                                 uint32_t *num_users,
                                  struct wbint_Principal **groups);
 
 struct tevent_req *wb_next_pwent_send(TALLOC_CTX *mem_ctx,