summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-05 14:36:55 -0700
committerJeremy Allison <jra@samba.org>2011-05-05 23:56:08 +0200
commitf85e095dd29638dcb4819f60a7239bc37e8a41ca (patch)
treec70e7a3229463d2af4a0a38a033145f46c1889bb /source3/utils
parent02af3075858814811bc30f03623eb6715f9b7a78 (diff)
downloadsamba-f85e095dd29638dcb4819f60a7239bc37e8a41ca.tar.gz
samba-f85e095dd29638dcb4819f60a7239bc37e8a41ca.tar.bz2
samba-f85e095dd29638dcb4819f60a7239bc37e8a41ca.zip
More simple const fixups.
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 3619ac339b..a966e5dd63 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -155,7 +155,7 @@ static int net_ads_lookup(struct net_context *c, int argc, const char **argv)
}
if (!ads->config.realm) {
- ads->config.realm = CONST_DISCARD(char *, c->opt_target_workgroup);
+ ads->config.realm = discard_const_p(char, c->opt_target_workgroup);
ads->ldap.port = 389;
}
@@ -401,7 +401,7 @@ static int net_ads_workgroup(struct net_context *c, int argc, const char **argv)
}
if (!ads->config.realm) {
- ads->config.realm = CONST_DISCARD(char *, c->opt_target_workgroup);
+ ads->config.realm = discard_const_p(char, c->opt_target_workgroup);
ads->ldap.port = 389;
}
@@ -2023,7 +2023,7 @@ static int net_ads_password(struct net_context *c, int argc, const char **argv)
const char *auth_principal = c->opt_user_name;
const char *auth_password = c->opt_password;
char *realm = NULL;
- char *new_password = NULL;
+ const char *new_password = NULL;
char *chr, *prompt;
const char *user;
ADS_STATUS ret;