]> granicus.if.org Git - shadow/commitdiff
Avoid implicit conversion of integers to booleans.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 25 May 2008 22:51:46 +0000 (22:51 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 25 May 2008 22:51:46 +0000 (22:51 +0000)
ChangeLog
libmisc/age.c

index 0588a8d7ceb8cb134245115f8b4b4ac7627cfaaf..783e6c3f303c5cc63ca553f4d3dc8e211531b764 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 14609029c44c18a34b3cf448ccd5dab635c595a4..440636e051e3675befc8f62f90f316215d834a24 100644 (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);