mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Fix compile warning in nametouid().
(This used to be commit deb6dfb4e0
)
This commit is contained in:
parent
5be247c62c
commit
069f1b5ff2
@ -2509,7 +2509,7 @@ turn a user name into a uid
|
|||||||
********************************************************************/
|
********************************************************************/
|
||||||
BOOL nametouid(const char *name, uid_t *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)
|
if (pass)
|
||||||
{
|
{
|
||||||
*uid = pass->pw_uid;
|
*uid = pass->pw_uid;
|
||||||
|
Loading…
Reference in New Issue
Block a user