[Pkg-shadow-commits] r2055 - in upstream/trunk: . lib

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon May 26 08:34:05 UTC 2008


Author: nekral-guest
Date: 2008-05-26 08:34:04 +0000 (Mon, 26 May 2008)
New Revision: 2055

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/groupio.c
Log:
The changed, isopen, locked, and readonly fields of the db are booleans.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-26 08:31:14 UTC (rev 2054)
+++ upstream/trunk/ChangeLog	2008-05-26 08:34:04 UTC (rev 2055)
@@ -1,5 +1,10 @@
 2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* lib/groupio.c: The changed, isopen, locked, and readonly fields
+	of the db are booleans.
+
+2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/sgetgrent.c: implicit conversion of pointers / chars to
 	booleans.
 	* lib/sgetgrent.c: Avoid assignments in comparisons.

Modified: upstream/trunk/lib/groupio.c
===================================================================
--- upstream/trunk/lib/groupio.c	2008-05-26 08:31:14 UTC (rev 2054)
+++ upstream/trunk/lib/groupio.c	2008-05-26 08:34:04 UTC (rev 2055)
@@ -119,10 +119,10 @@
 	NULL,			/* head */
 	NULL,			/* tail */
 	NULL,			/* cursor */
-	0,			/* changed */
-	0,			/* isopen */
-	0,			/* locked */
-	0			/* readonly */
+	false,			/* changed */
+	false,			/* isopen */
+	false,			/* locked */
+	false			/* readonly */
 };
 
 int gr_name (const char *filename)
@@ -189,7 +189,7 @@
 
 void __gr_set_changed (void)
 {
-	group_db.changed = 1;
+	group_db.changed = true;
 }
 
 struct commonio_entry *__gr_get_head (void)
@@ -387,7 +387,7 @@
 		}
 		new_gptr = (struct group *)new->eptr;
 		new->line = NULL;
-		new->changed = 1;
+		new->changed = true;
 
 		/* Enforce the maximum number of members on gptr */
 		gptr->gr_mem[max_members] = NULL;




More information about the Pkg-shadow-commits mailing list