]> granicus.if.org Git - shadow/commitdiff
* lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 26 May 2008 08:45:34 +0000 (08:45 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 26 May 2008 08:45:34 +0000 (08:45 +0000)
* lib/shadowio.h: Add protection against multiple inclusions.

ChangeLog
lib/shadowio.c
lib/shadowio.h

index e352390e0d35d2a57615108ef69806e51a37c284..0f2efd76b3313b7f190bae226392293a05b8aad1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-26  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * lib/sgroupio.c: Avoid assignments in comparisons.
index fe6e7a566f5736606ce1ebdd26d4da616e74feb9..bb59c20cc905db8fb361e8512c8b88b4e5802a79 100644 (file)
@@ -110,7 +110,7 @@ int spw_name (const char *filename)
        return commonio_setname (&shadow_db, filename);
 }
 
-int spw_file_present (void)
+bool spw_file_present (void)
 {
        return commonio_present (&shadow_db);
 }
index 81267bbfac4079a972e13c6697689c466cd2148d..b10f51e0b79aca3306a6fccfc1142f3568946537 100644 (file)
  * 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_unlock (void);
 extern int spw_update (const struct spwd *);
 extern int spw_sort (void);
 
+#endif