summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-12 01:39:46 +0000
committerTim Potter <tpot@samba.org>1999-04-12 01:39:46 +0000
commitdeb6dfb4e0c975a93a7bb3f93265c678eb35bd76 (patch)
tree5150456549766ed35882c15f0aeee8ffd0758497 /source/lib/util.c
parent4ed67ccf1cdfd064cf2b2949020feb5afcb76b9d (diff)
downloadsamba-deb6dfb4e0c975a93a7bb3f93265c678eb35bd76.tar.gz
samba-deb6dfb4e0c975a93a7bb3f93265c678eb35bd76.tar.xz
samba-deb6dfb4e0c975a93a7bb3f93265c678eb35bd76.zip
Fix compile warning in nametouid().
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 30ad0a70652..dcad289071d 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -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;