diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-26 22:48:27 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-27 19:19:46 +0200 |
commit | e736ace470cec34fe51ee0a7b03981ab9b16d6cd (patch) | |
tree | 62411904f0399218e7cf3157169c417b65716ff1 /source4 | |
parent | a133d83607ce9db9a4725b170001e934648150da (diff) | |
download | samba-e736ace470cec34fe51ee0a7b03981ab9b16d6cd.tar.gz samba-e736ace470cec34fe51ee0a7b03981ab9b16d6cd.tar.bz2 samba-e736ace470cec34fe51ee0a7b03981ab9b16d6cd.zip |
s4:torture/spoolss_access.c - fix discarded const warning
"discard_const_p" seems the most appropriate here.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/spoolss_access.c | 5 |
1 files 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); |