Fixed compiler warnings
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: mbpasswd.c,v 1.20 2007/05/28 10:40:24 mbse Exp $
|
||||
* Purpose ...............: setuid root version of passwd
|
||||
* Shadow Suite (c) ......: Julianne Frances Haugh
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -847,7 +846,6 @@ int main(int argc, char *argv[])
|
||||
static struct group *gr;
|
||||
int pfd, tfd;
|
||||
#endif
|
||||
char *cp;
|
||||
#ifdef _VPOPMAIL_PATH
|
||||
char *args[16];
|
||||
#endif
|
||||
@@ -1057,11 +1055,8 @@ int main(int argc, char *argv[])
|
||||
sp = getspnam(name);
|
||||
if (!sp)
|
||||
sp = pwd_to_spwd(pw);
|
||||
|
||||
cp = sp->sp_pwdp;
|
||||
#else
|
||||
cp = pw->pw_passwd;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* See if the user is permitted to change the password.
|
||||
* Otherwise, go ahead and set a new password.
|
||||
|
Reference in New Issue
Block a user