summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-07 04:38:33 +0000
committerTim Potter <tpot@samba.org>2002-05-07 04:38:33 +0000
commita04166f35e84f55b58cfecf568061ff2968421dc (patch)
treee2b8b9c246147b2aaf77bf94314478d0789ff253
parent535779e9fc3f68903c4a6a0a16f20fe1dd6327c7 (diff)
downloadsamba-a04166f35e84f55b58cfecf568061ff2968421dc.tar.gz
samba-a04166f35e84f55b58cfecf568061ff2968421dc.tar.bz2
samba-a04166f35e84f55b58cfecf568061ff2968421dc.zip
Fixed more compiler warnings.
(This used to be commit fa5c1ba12b4cae0c03f1adbc38e7ad5eeca0e895)
-rw-r--r--source3/rpcclient/cmd_samr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index ee46fc64a5..6db67f5792 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -989,7 +989,7 @@ static NTSTATUS cmd_samr_lookup_names(struct cli_state *cli,
POLICY_HND connect_pol, domain_pol;
uint32 flags = 0x000003e8; /* Unknown */
uint32 num_rids, num_names, *name_types, *rids;
- char **names;
+ const char **names;
int i;
DOM_SID global_sid_Builtin;
@@ -1029,7 +1029,7 @@ static NTSTATUS cmd_samr_lookup_names(struct cli_state *cli,
/* Look up names */
num_names = argc - 2;
- names = (char **)talloc(mem_ctx, sizeof(char *) * num_names);
+ names = (const char **)talloc(mem_ctx, sizeof(char *) * num_names);
for (i = 0; i < argc - 2; i++)
names[i] = argv[i + 2];
@@ -1150,7 +1150,7 @@ static NTSTATUS cmd_samr_delete_dom_user(struct cli_state *cli,
uint32 flags = 0x000003e8; /* Unknown */
result = cli_samr_lookup_names(cli, mem_ctx, &domain_pol,
- flags, 1, &argv[1],
+ flags, 1, (const char **)&argv[1],
&num_rids, &user_rids,
&name_types);