summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-02-01 15:22:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:39 -0500
commite005f8b0140ee2c4331a1081ad21b2a9955a861f (patch)
treed0ecbc3a36eaadc160a6418254921499120b708d /source3/nsswitch
parentbad8c39f1ce48229c1ca545c03de6b7c26b7ba9f (diff)
downloadsamba-e005f8b0140ee2c4331a1081ad21b2a9955a861f.tar.gz
samba-e005f8b0140ee2c4331a1081ad21b2a9955a861f.tar.bz2
samba-e005f8b0140ee2c4331a1081ad21b2a9955a861f.zip
r21112: fix const compile warning
(This used to be commit 6b754f7c96400d5d1f14e807aac0aa925c45eefb)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_rpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c
index 6e6add2009..13a2174a26 100644
--- a/source3/nsswitch/winbindd_rpc.c
+++ b/source3/nsswitch/winbindd_rpc.c
@@ -246,7 +246,7 @@ NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,
NTSTATUS result;
DOM_SID *sids = NULL;
enum lsa_SidType *types = NULL;
- char *full_name;
+ char *full_name = NULL;
struct rpc_pipe_client *cli;
POLICY_HND lsa_policy;
@@ -271,7 +271,7 @@ NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,
return result;
result = rpccli_lsa_lookup_names(cli, mem_ctx, &lsa_policy, 1,
- &full_name, NULL, &sids, &types);
+ (const char**) &full_name, NULL, &sids, &types);
if (!NT_STATUS_IS_OK(result))
return result;