git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ce9d5
)
Fix const warning.
author
Jeremy Allison
<jra@samba.org>
Wed, 1 Jun 2011 21:51:21 +0000
(14:51 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 1 Jun 2011 21:53:07 +0000
(23:53 +0200)
source3/utils/net_lookup.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_lookup.c
b/source3/utils/net_lookup.c
index 4191825490de383c6ebcd2e91ddb833be085521d..febf481e552853eff38dbb4393876a8f62f96f55 100644
(file)
--- 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);