From e005f8b0140ee2c4331a1081ad21b2a9955a861f Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 1 Feb 2007 15:22:08 +0000 Subject: r21112: fix const compile warning (This used to be commit 6b754f7c96400d5d1f14e807aac0aa925c45eefb) --- source3/nsswitch/winbindd_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch/winbindd_rpc.c') 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; -- cgit