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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon May 26 08:43:51 UTC 2008


Author: nekral-guest
Date: 2008-05-26 08:43:50 +0000 (Mon, 26 May 2008)
New Revision: 2058

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/sgroupio.h
Log:
	* lib/sgroupio.c: Avoid assignments in comparisons.
	* lib/sgroupio.c: Add brackets.
	* lib/sgroupio.c: Avoid implicit conversion of pointers / integers to booleans.
	* lib/sgroupio.c: The changed, isopen, locked, and readonly fields of the db are booleans.
	* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
	* lib/sgroupio.h: Add protection against multiple inclusions.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-26 08:40:04 UTC (rev 2057)
+++ upstream/trunk/ChangeLog	2008-05-26 08:43:50 UTC (rev 2058)
@@ -1,5 +1,16 @@
 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
+	to booleans.
+	* lib/sgroupio.c: The changed, isopen, locked, and readonly fields
+	of the db are booleans.
+	* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
+	* lib/sgroupio.h: Add protection against multiple inclusions.
+
+2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/gshadow.c: nis_used and nis_bound are booleans.
 	* lib/gshadow.c: Avoid implicit conversion of pointers / integers
 	to booleans.

Modified: upstream/trunk/lib/sgroupio.h
===================================================================
--- upstream/trunk/lib/sgroupio.h	2008-05-26 08:40:04 UTC (rev 2057)
+++ upstream/trunk/lib/sgroupio.h	2008-05-26 08:43:50 UTC (rev 2058)
@@ -31,8 +31,12 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/* $Id$ */
+#ifndef _SGROUPIO_H
+#define _SGROUPIO_H
+
 extern int sgr_close (void);
-extern int sgr_file_present (void);
+extern bool sgr_file_present (void);
 extern const struct sgrp *sgr_locate (const char *);
 extern int sgr_lock (void);
 extern int sgr_name (const char *);
@@ -44,3 +48,4 @@
 extern int sgr_update (const struct sgrp *);
 extern int sgr_sort (void);
 
+#endif




More information about the Pkg-shadow-commits mailing list