From: nekral-guest Date: Mon, 17 Mar 2008 23:05:59 +0000 (+0000) Subject: Fix minor compilation warning (assignment used as a comparison). X-Git-Tag: 4.1.1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32b424e5078f0da0f7f2239d5a4e0251f3f980ad;p=shadow Fix minor compilation warning (assignment used as a comparison). --- diff --git a/ChangeLog b/ChangeLog index 916f2910..1b67bb69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-17 Nicolas François + + * src/faillog.c: Fix minor compilation warning (assignment used as + a comparison). + 2008-03-17 Nicolas François * lib/prototypes.h, src/login.c: login_access() is used in diff --git a/src/faillog.c b/src/faillog.c index 7ca935dd..024e044d 100644 --- a/src/faillog.c +++ b/src/faillog.c @@ -167,7 +167,7 @@ static void reset (void) struct passwd *pwent; setpwent (); - while ( pwent = getpwent () ) { + while ( (pwent = getpwent ()) != NULL ) { reset_one (pwent->pw_uid); } }