Avoid implicit conversion of integers to booleans.
This commit is contained in:
parent
11003f5842
commit
f2b4efff20
@ -1,3 +1,8 @@
|
|||||||
|
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* libmisc/age.c: Avoid implicit conversion of integers to
|
||||||
|
booleans.
|
||||||
|
|
||||||
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
|
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/rlogin.c: Avoid assignments in comparisons.
|
* libmisc/rlogin.c: Avoid assignments in comparisons.
|
||||||
|
@ -123,7 +123,7 @@ int expire (const struct passwd *pw, const struct spwd *sp)
|
|||||||
* passwd to work just like it would had they executed
|
* passwd to work just like it would had they executed
|
||||||
* it from the command line while logged in.
|
* it from the command line while logged in.
|
||||||
*/
|
*/
|
||||||
if (setup_uid_gid (pw, 0))
|
if (setup_uid_gid (pw, 0) != 0)
|
||||||
_exit (126);
|
_exit (126);
|
||||||
|
|
||||||
execl (PASSWD_PROGRAM, PASSWD_PROGRAM, pw->pw_name, (char *) 0);
|
execl (PASSWD_PROGRAM, PASSWD_PROGRAM, pw->pw_name, (char *) 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user