[Pkg-shadow-commits] r1903 - in upstream/trunk: . src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon Mar 17 23:06:00 UTC 2008


Author: nekral-guest
Date: 2008-03-17 23:05:59 +0000 (Mon, 17 Mar 2008)
New Revision: 1903

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/faillog.c
Log:
Fix minor compilation warning (assignment used as a comparison).


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-03-17 23:04:46 UTC (rev 1902)
+++ upstream/trunk/ChangeLog	2008-03-17 23:05:59 UTC (rev 1903)
@@ -1,5 +1,10 @@
 2008-03-17  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/faillog.c: Fix minor compilation warning (assignment used as
+	a comparison).
+
+2008-03-17  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/prototypes.h, src/login.c: login_access() is used in
 	src/login.c, and defined in src/login_nopam.c (which lacks a
 	prototype). Move its prototype from src/login.c to

Modified: upstream/trunk/src/faillog.c
===================================================================
--- upstream/trunk/src/faillog.c	2008-03-17 23:04:46 UTC (rev 1902)
+++ upstream/trunk/src/faillog.c	2008-03-17 23:05:59 UTC (rev 1903)
@@ -167,7 +167,7 @@
 		struct passwd *pwent;
 
 		setpwent ();
-		while ( pwent = getpwent () ) {
+		while ( (pwent = getpwent ()) != NULL ) {
 			reset_one (pwent->pw_uid);
 		}
 	}




More information about the Pkg-shadow-commits mailing list