Fix compile warning in nametouid().
authorTim Potter <tpot@samba.org>
Mon, 12 Apr 1999 01:39:46 +0000 (01:39 +0000)
committerTim Potter <tpot@samba.org>
Mon, 12 Apr 1999 01:39:46 +0000 (01:39 +0000)
(This used to be commit deb6dfb4e0c975a93a7bb3f93265c678eb35bd76)

source3/lib/util.c

index 30ad0a70652ffb2efb2994bfa5597dbf04a86a37..dcad289071dc4b2e5f470a633ab29ec169ddf5e6 100644 (file)
@@ -2509,7 +2509,7 @@ turn a user name into a uid
 ********************************************************************/
 BOOL nametouid(const char *name, uid_t *uid)
 {
-       struct passwd *pass = Get_Pwnam(name, False);
+       struct passwd *pass = Get_Pwnam((char *)name, False);
        if (pass)
        {
                *uid = pass->pw_uid;