summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-04-01 08:54:01 +0000
committerVolker Lendecke <vlendec@samba.org>2004-04-01 08:54:01 +0000
commitc814f7c43db9700ec08a30c45521181c754df247 (patch)
tree4320b5e1f43d97c8ad6d0ea02606be1d15516e1e /source/nsswitch
parentde2f149e9e687fc8cba6870d921341a6a1fd9c13 (diff)
downloadsamba-c814f7c43db9700ec08a30c45521181c754df247.tar.gz
samba-c814f7c43db9700ec08a30c45521181c754df247.tar.xz
samba-c814f7c43db9700ec08a30c45521181c754df247.zip
Cosmetic: Fix a const warning.
Volker
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/wbinfo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c
index 772332ee592..81626998b3b 100644
--- a/source/nsswitch/wbinfo.c
+++ b/source/nsswitch/wbinfo.c
@@ -846,18 +846,19 @@ static BOOL print_domain_groups(const char *domain)
static BOOL wbinfo_set_auth_user(char *username)
{
- char *password;
+ const char *password;
+ char *p;
fstring user, domain;
/* Separate into user and password */
parse_wbinfo_domain_user(username, domain, user);
- password = strchr(user, '%');
+ p = strchr(user, '%');
- if (password) {
- *password = 0;
- password++;
+ if (p != NULL) {
+ *p = 0;
+ password = p+1;
} else {
char *thepass = getpass("Password: ");
if (thepass) {