From cbfe8029a4890355a953813f6f588ed015ac077c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 1 Jun 2011 14:51:21 -0700 Subject: Fix const warning. --- source3/utils/net_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index 4191825490..febf481e55 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -293,7 +293,7 @@ static int net_lookup_kdc(struct net_context *c, int argc, const char **argv) realm.data = discard_const_p(char, argv[0]); realm.length = strlen(argv[0]); } else if (lp_realm() && *lp_realm()) { - realm.data = lp_realm(); + realm.data = discard_const_p(char, lp_realm()); realm.length = strlen((const char *)realm.data); } else { rc = krb5_get_host_realm(ctx, NULL, &realms); -- cgit