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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon May 26 08:49:47 UTC 2008


Author: nekral-guest
Date: 2008-05-26 08:49:44 +0000 (Mon, 26 May 2008)
New Revision: 2061

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/pwio.c
   upstream/trunk/lib/pwio.h
Log:
	* lib/pwio.h: Add protection against multiple inclusions.
	* lib/pwio.c: The changed, isopen, locked, and readonly fields of the db are booleans.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-26 08:46:41 UTC (rev 2060)
+++ upstream/trunk/ChangeLog	2008-05-26 08:49:44 UTC (rev 2061)
@@ -1,5 +1,11 @@
 2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* lib/pwio.h: Add protection against multiple inclusions.
+	* lib/pwio.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/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
 	* lib/shadowio.h: Add protection against multiple inclusions.
 

Modified: upstream/trunk/lib/pwio.c
===================================================================
--- upstream/trunk/lib/pwio.c	2008-05-26 08:46:41 UTC (rev 2060)
+++ upstream/trunk/lib/pwio.c	2008-05-26 08:49:44 UTC (rev 2061)
@@ -102,10 +102,10 @@
 	NULL,			/* head */
 	NULL,			/* tail */
 	NULL,			/* cursor */
-	0,			/* changed */
-	0,			/* isopen */
-	0,			/* locked */
-	0			/* readonly */
+	false,			/* changed */
+	false,			/* isopen */
+	false,			/* locked */
+	false			/* readonly */
 };
 
 int pw_name (const char *filename)

Modified: upstream/trunk/lib/pwio.h
===================================================================
--- upstream/trunk/lib/pwio.h	2008-05-26 08:46:41 UTC (rev 2060)
+++ upstream/trunk/lib/pwio.h	2008-05-26 08:49:44 UTC (rev 2061)
@@ -31,6 +31,10 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/* $Id$ */
+#ifndef _PWIO_H
+#define _PWIO_H
+
 #include <pwd.h>
 extern int pw_close (void);
 extern const struct passwd *pw_locate (const char *);
@@ -45,3 +49,4 @@
 extern int pw_update (const struct passwd *);
 extern int pw_sort (void);
 
+#endif




More information about the Pkg-shadow-commits mailing list