From 193830091fc99aa500aac123ed027ecc7e6ad11c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 16 Jun 2006 02:01:29 +0000 Subject: r16285: On a 64-bit box, size_t != uint32. Ensure we use the right parameter type. Jeremy. (This used to be commit 938545f5352161b4fe195c2a826a26db5236f851) --- source3/nsswitch/winbindd_ads.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index a8eb6f86d0..3ed651f8cd 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -806,7 +806,8 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain, status = lookup_usergroups_memberof(domain, mem_ctx, user_dn, &primary_group, - p_num_groups, user_sids); + &num_groups, user_sids); + *p_num_groups = (uint32)num_groups; if (NT_STATUS_IS_OK(status)) { goto done; } @@ -816,7 +817,8 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain, status = lookup_usergroups_member(domain, mem_ctx, user_dn, &primary_group, - p_num_groups, user_sids); + &num_groups, user_sids); + *p_num_groups = (uint32)num_groups; goto done; } -- cgit