Avoid implicit conversion of integers to booleans.

This commit is contained in:
nekral-guest 2008-05-25 22:51:46 +00:00
parent 11003f5842
commit f2b4efff20
2 changed files with 6 additions and 1 deletions

View File

@ -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>
* libmisc/rlogin.c: Avoid assignments in comparisons.

View File

@ -123,7 +123,7 @@ int expire (const struct passwd *pw, const struct spwd *sp)
* passwd to work just like it would had they executed
* it from the command line while logged in.
*/
if (setup_uid_gid (pw, 0))
if (setup_uid_gid (pw, 0) != 0)
_exit (126);
execl (PASSWD_PROGRAM, PASSWD_PROGRAM, pw->pw_name, (char *) 0);