]> granicus.if.org Git - shadow/commitdiff
* lib/pwio.h: Add protection against multiple inclusions.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 26 May 2008 08:49:44 +0000 (08:49 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 26 May 2008 08:49:44 +0000 (08:49 +0000)
* lib/pwio.c: The changed, isopen, locked, and readonly fields of the db are booleans.

ChangeLog
lib/pwio.c
lib/pwio.h

index 0f2efd76b3313b7f190bae226392293a05b8aad1..cf9865129d9b615f5dc120b903c9fc5cef3dd092 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-26  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
index 820467c0975b892f8fe2918bd8b081da7aca3356..f36fec227e60c698eaaaac159d3f6169fdffa4bf 100644 (file)
@@ -102,10 +102,10 @@ static struct commonio_db passwd_db = {
        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)
index bc662e2dd58cb39483b2092c498deec568123e3c..12a0e63f0bd5a8433d5e53023f59fe0d84660784 100644 (file)
  * 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_unlock (void);
 extern int pw_update (const struct passwd *);
 extern int pw_sort (void);
 
+#endif