diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-04-01 08:54:01 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-04-01 08:54:01 +0000 |
commit | e2f355c7eae4f1fda705cc223575193535b91da5 (patch) | |
tree | 829af69033452c10738125a6ca103e07e36fda75 /source3 | |
parent | e86972742066783406acc598cc21661e3b09d78e (diff) | |
download | samba-e2f355c7eae4f1fda705cc223575193535b91da5.tar.gz samba-e2f355c7eae4f1fda705cc223575193535b91da5.tar.bz2 samba-e2f355c7eae4f1fda705cc223575193535b91da5.zip |
Cosmetic: Fix a const warning.
Volker
(This used to be commit c814f7c43db9700ec08a30c45521181c754df247)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/wbinfo.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index 772332ee59..81626998b3 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/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) { |