]> granicus.if.org Git - shadow/commitdiff
Fix minor compilation warning (assignment used as a comparison).
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 17 Mar 2008 23:05:59 +0000 (23:05 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 17 Mar 2008 23:05:59 +0000 (23:05 +0000)
ChangeLog
src/faillog.c

index 916f2910e038c879ca10c082794ce000e8f39b53..1b67bb697dbd3713c97768b3bd26b0d49bafdc40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-17  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/faillog.c: Fix minor compilation warning (assignment used as
+       a comparison).
+
 2008-03-17  Nicolas François  <nicolas.francois@centraliens.net>
 
        * lib/prototypes.h, src/login.c: login_access() is used in
index 7ca935dd731dc8482453b24cf2a462b2108b2a36..024e044db8e2f44c144cb00bb4e0d807092bc6f2 100644 (file)
@@ -167,7 +167,7 @@ static void reset (void)
                struct passwd *pwent;
 
                setpwent ();
-               while ( pwent = getpwent () ) {
+               while ( (pwent = getpwent ()) != NULL ) {
                        reset_one (pwent->pw_uid);
                }
        }