Cosmetic: Fix a const warning.
authorVolker Lendecke <vlendec@samba.org>
Thu, 1 Apr 2004 08:54:01 +0000 (08:54 +0000)
committerVolker Lendecke <vlendec@samba.org>
Thu, 1 Apr 2004 08:54:01 +0000 (08:54 +0000)
Volker

source/nsswitch/wbinfo.c

index 772332ee59272fe981fb1675c4592765a0ad0cec..81626998b3b80241f74c6ea160600bc541e450ba 100644 (file)
@@ -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) {