summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-06-01 14:51:21 -0700
committerJeremy Allison <jra@samba.org>2011-06-01 23:53:07 +0200
commitcbfe8029a4890355a953813f6f588ed015ac077c (patch)
tree1021c8f92d3d7d2caea8168676a28c81249580b7
parent24ce9d52a644a8d7aa8e2ef3de1bb8cb644db410 (diff)
downloadsamba-cbfe8029a4890355a953813f6f588ed015ac077c.tar.gz
samba-cbfe8029a4890355a953813f6f588ed015ac077c.tar.bz2
samba-cbfe8029a4890355a953813f6f588ed015ac077c.zip
Fix const warning.
-rw-r--r--source3/utils/net_lookup.c2
1 files changed, 1 insertions, 1 deletions
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);