From 6b9977916ec6de2ae4b224e3dcbc6c1f3e7b207e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Aug 2013 19:10:29 +0200 Subject: [PATCH] s4:torture/rpc: s/getgroups/getgr to avoid compiler warnings Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/torture/rpc/samsync.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c index 656dbf912b3..d6d05508219 100644 --- a/source4/torture/rpc/samsync.c +++ b/source4/torture/rpc/samsync.c @@ -489,7 +489,7 @@ static bool samsync_handle_user(struct torture_context *tctx, TALLOC_CTX *mem_ct union samr_UserInfo *info; struct policy_handle user_handle; - struct samr_GetGroupsForUser getgroups; + struct samr_GetGroupsForUser getgr; struct samr_RidWithAttributeArray *rids; if (domain == NULL || @@ -521,13 +521,13 @@ static bool samsync_handle_user(struct torture_context *tctx, TALLOC_CTX *mem_ct torture_assert_ntstatus_ok(tctx, q.out.result, talloc_asprintf(tctx, "OpenUserInfo level %u failed", q.in.level)); - getgroups.in.user_handle = &user_handle; - getgroups.out.rids = &rids; + getgr.in.user_handle = &user_handle; + getgr.out.rids = &rids; torture_assert_ntstatus_ok(tctx, - dcerpc_samr_GetGroupsForUser_r(samsync_state->b_samr, mem_ctx, &getgroups), + dcerpc_samr_GetGroupsForUser_r(samsync_state->b_samr, mem_ctx, &getgr), "GetGroupsForUser failed"); - torture_assert_ntstatus_ok(tctx, getgroups.out.result, + torture_assert_ntstatus_ok(tctx, getgr.out.result, "GetGroupsForUser failed"); if (!test_samr_handle_Close(samsync_state->b_samr, tctx, &user_handle)) {