From 60b401efb9102c515f68e9fdde368db2eb59ab9e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 22 Nov 2006 18:06:08 +0000 Subject: r19846: Fix bunch of IDL warnings. (This used to be commit 48e6df59444a78dc268b84c5f94787de09d41908) --- source4/torture/rpc/unixinfo.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source4/torture/rpc/unixinfo.c') diff --git a/source4/torture/rpc/unixinfo.c b/source4/torture/rpc/unixinfo.c index 567a85fd44..d6f1793644 100644 --- a/source4/torture/rpc/unixinfo.c +++ b/source4/torture/rpc/unixinfo.c @@ -25,8 +25,7 @@ #include "librpc/gen_ndr/ndr_unixinfo_c.h" #include "libcli/security/security.h" - -/* +/** test the SidToUid interface */ static BOOL test_sidtouid(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) @@ -41,7 +40,7 @@ static BOOL test_sidtouid(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) status = dcerpc_unixinfo_SidToUid(p, mem_ctx, &r); if (NT_STATUS_EQUAL(NT_STATUS_NONE_MAPPED, status)) { } else if (!NT_STATUS_IS_OK(status)) { - printf("UidToSid failed == %s\n", nt_errstr(status)); + printf("SidToUid failed == %s\n", nt_errstr(status)); return False; } @@ -55,8 +54,10 @@ static bool test_uidtosid(struct torture_context *tctx, struct dcerpc_pipe *p) { struct unixinfo_UidToSid r; + struct dom_sid sid; r.in.uid = 1000; + r.out.sid = &sid; torture_assert_ntstatus_ok(tctx, dcerpc_unixinfo_UidToSid(p, tctx, &r), "UidToSid failed"); @@ -118,8 +119,10 @@ static BOOL test_gidtosid(struct torture_context *tctx, struct dcerpc_pipe *p) { NTSTATUS status; struct unixinfo_GidToSid r; + struct dom_sid sid; r.in.gid = 1000; + r.out.sid = &sid; status = dcerpc_unixinfo_GidToSid(p, tctx, &r); if (NT_STATUS_EQUAL(NT_STATUS_NO_SUCH_GROUP, status)) { -- cgit