summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-13 14:10:10 +0100
committerGünther Deschner <gd@samba.org>2008-02-13 14:17:29 +0100
commita2c0ca84d51945e01f3acdba05430a2736fa9278 (patch)
tree87686a6e87f0fe3a13e2008e525b34a6853c218c /source3
parent4b18f4f222ed800975a6172973de2e5698563117 (diff)
downloadsamba-a2c0ca84d51945e01f3acdba05430a2736fa9278.tar.gz
samba-a2c0ca84d51945e01f3acdba05430a2736fa9278.tar.bz2
samba-a2c0ca84d51945e01f3acdba05430a2736fa9278.zip
Remove const on policy handle in net rpc.
Volker, are you ok with that? Guenther (This used to be commit f1c7fa19e43d720f0d42e6d1999130462d5979da)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 3767138601..5bc37f391f 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -1406,9 +1406,8 @@ static NTSTATUS rpc_sh_handle_user(TALLOC_CTX *mem_ctx,
TALLOC_CTX *mem_ctx,
struct rpc_sh_ctx *ctx,
struct rpc_pipe_client *pipe_hnd,
- const POLICY_HND *user_hnd,
+ POLICY_HND *user_hnd,
int argc, const char **argv))
-
{
POLICY_HND connect_pol, domain_pol, user_pol;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
@@ -1490,7 +1489,7 @@ static NTSTATUS rpc_sh_handle_user(TALLOC_CTX *mem_ctx,
static NTSTATUS rpc_sh_user_show_internals(TALLOC_CTX *mem_ctx,
struct rpc_sh_ctx *ctx,
struct rpc_pipe_client *pipe_hnd,
- const POLICY_HND *user_hnd,
+ POLICY_HND *user_hnd,
int argc, const char **argv)
{
NTSTATUS result;
@@ -1502,7 +1501,7 @@ static NTSTATUS rpc_sh_user_show_internals(TALLOC_CTX *mem_ctx,
}
result = rpccli_samr_QueryUserInfo(pipe_hnd, mem_ctx,
- CONST_DISCARD(struct policy_handle *, user_hnd),
+ user_hnd,
21,
&info);
if (!NT_STATUS_IS_OK(result)) {
@@ -1539,7 +1538,7 @@ do { if (strequal(ctx->thiscmd, name)) { \
static NTSTATUS rpc_sh_user_str_edit_internals(TALLOC_CTX *mem_ctx,
struct rpc_sh_ctx *ctx,
struct rpc_pipe_client *pipe_hnd,
- const POLICY_HND *user_hnd,
+ POLICY_HND *user_hnd,
int argc, const char **argv)
{
NTSTATUS result;
@@ -1554,7 +1553,7 @@ static NTSTATUS rpc_sh_user_str_edit_internals(TALLOC_CTX *mem_ctx,
}
result = rpccli_samr_QueryUserInfo(pipe_hnd, mem_ctx,
- CONST_DISCARD(struct policy_handle *, user_hnd),
+ user_hnd,
21,
&info);
if (!NT_STATUS_IS_OK(result)) {
@@ -1589,7 +1588,7 @@ static NTSTATUS rpc_sh_user_str_edit_internals(TALLOC_CTX *mem_ctx,
SETSTR("description", description, DESCRIPTION);
result = rpccli_samr_SetUserInfo(pipe_hnd, mem_ctx,
- CONST_DISCARD(struct policy_handle *, user_hnd),
+ user_hnd,
21,
info);
@@ -1622,7 +1621,7 @@ static NTSTATUS rpc_sh_user_str_edit(TALLOC_CTX *mem_ctx,
static NTSTATUS rpc_sh_user_flag_edit_internals(TALLOC_CTX *mem_ctx,
struct rpc_sh_ctx *ctx,
struct rpc_pipe_client *pipe_hnd,
- const POLICY_HND *user_hnd,
+ POLICY_HND *user_hnd,
int argc, const char **argv)
{
NTSTATUS result;
@@ -1643,7 +1642,7 @@ static NTSTATUS rpc_sh_user_flag_edit_internals(TALLOC_CTX *mem_ctx,
newval = strequal(argv[0], "yes");
result = rpccli_samr_QueryUserInfo(pipe_hnd, mem_ctx,
- CONST_DISCARD(struct policy_handle *, user_hnd),
+ user_hnd,
21,
&info);
if (!NT_STATUS_IS_OK(result)) {
@@ -1670,7 +1669,7 @@ static NTSTATUS rpc_sh_user_flag_edit_internals(TALLOC_CTX *mem_ctx,
info->info21.fields_present = SAMR_FIELD_ACCT_FLAGS;
result = rpccli_samr_SetUserInfo(pipe_hnd, mem_ctx,
- CONST_DISCARD(struct policy_handle *, user_hnd),
+ user_hnd,
21,
info);