diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-11-22 18:06:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:28:24 -0500 |
commit | 60b401efb9102c515f68e9fdde368db2eb59ab9e (patch) | |
tree | 4ad6b98e273d6794dce3b23b576c730f10b211b8 /source4/torture/rpc | |
parent | 55eaaa223800a45ee8ea3f85904f722f91547dd8 (diff) | |
download | samba-60b401efb9102c515f68e9fdde368db2eb59ab9e.tar.gz samba-60b401efb9102c515f68e9fdde368db2eb59ab9e.tar.bz2 samba-60b401efb9102c515f68e9fdde368db2eb59ab9e.zip |
r19846: Fix bunch of IDL warnings.
(This used to be commit 48e6df59444a78dc268b84c5f94787de09d41908)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/unixinfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
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)) { |