From e736ace470cec34fe51ee0a7b03981ab9b16d6cd Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 26 Aug 2010 22:48:27 +0200 Subject: s4:torture/spoolss_access.c - fix discarded const warning "discard_const_p" seems the most appropriate here. --- source4/torture/rpc/spoolss_access.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/torture/rpc/spoolss_access.c b/source4/torture/rpc/spoolss_access.c index 08d1375f63..cd531d7009 100644 --- a/source4/torture/rpc/spoolss_access.c +++ b/source4/torture/rpc/spoolss_access.c @@ -314,7 +314,7 @@ static bool test_SetPrinter(struct torture_context *tctx, static bool spoolss_access_setup_sd(struct torture_context *tctx, struct dcerpc_pipe *p, const char *printername, - struct dom_sid *user_sid, + const struct dom_sid *user_sid, struct security_descriptor **sd_orig) { struct dcerpc_binding_handle *b = p->binding_handle; @@ -453,7 +453,8 @@ static bool torture_rpc_spoolss_access_setup_common(struct torture_context *tctx CRED_SPECIFIED); cli_credentials_set_username(test_credentials, t->user.username, CRED_SPECIFIED); cli_credentials_set_password(test_credentials, testuser_passwd, CRED_SPECIFIED); - test_sid = torture_join_user_sid(testuser); + test_sid = discard_const_p(struct dom_sid, + torture_join_user_sid(testuser)); if (t->user.num_builtin_memberships) { struct dcerpc_pipe *samr_pipe = torture_join_samr_pipe(testuser); -- cgit