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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon May 26 08:45:37 UTC 2008


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

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/shadowio.c
   upstream/trunk/lib/shadowio.h
Log:
	* lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
	* lib/shadowio.h: Add protection against multiple inclusions.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-26 08:43:50 UTC (rev 2058)
+++ upstream/trunk/ChangeLog	2008-05-26 08:45:34 UTC (rev 2059)
@@ -1,5 +1,10 @@
 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.
+
+2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/sgroupio.c: Avoid assignments in comparisons.
 	* lib/sgroupio.c: Add brackets.
 	* lib/sgroupio.c: Avoid implicit conversion of pointers / integers

Modified: upstream/trunk/lib/shadowio.c
===================================================================
--- upstream/trunk/lib/shadowio.c	2008-05-26 08:43:50 UTC (rev 2058)
+++ upstream/trunk/lib/shadowio.c	2008-05-26 08:45:34 UTC (rev 2059)
@@ -110,7 +110,7 @@
 	return commonio_setname (&shadow_db, filename);
 }
 
-int spw_file_present (void)
+bool spw_file_present (void)
 {
 	return commonio_present (&shadow_db);
 }

Modified: upstream/trunk/lib/shadowio.h
===================================================================
--- upstream/trunk/lib/shadowio.h	2008-05-26 08:43:50 UTC (rev 2058)
+++ upstream/trunk/lib/shadowio.h	2008-05-26 08:45:34 UTC (rev 2059)
@@ -30,8 +30,14 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/* $Id$ */
+#ifndef _SHADOWIO_H
+#define _SHADOWIO_H
+
+#include "defines.h"
+
 extern int spw_close (void);
-extern int spw_file_present (void);
+extern bool spw_file_present (void);
 extern const struct spwd *spw_locate (const char *);
 extern int spw_lock (void);
 extern int spw_name (const char *);
@@ -43,3 +49,4 @@
 extern int spw_update (const struct spwd *);
 extern int spw_sort (void);
 
+#endif




More information about the Pkg-shadow-commits mailing list