]> granicus.if.org Git - shadow/commitdiff
The changed, isopen, locked, and readonly fields of the db are booleans.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 26 May 2008 08:34:04 +0000 (08:34 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 26 May 2008 08:34:04 +0000 (08:34 +0000)
ChangeLog
lib/groupio.c

index bd77d3951752ec1c61a72c3f79f90f3635612baf..d9bb81c7437fe4afab885e526d12b49237ffaea8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-26  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/groupio.c: The changed, isopen, locked, and readonly fields
+       of the db are booleans.
+
 2008-05-26  Nicolas François  <nicolas.francois@centraliens.net>
 
        * lib/sgetgrent.c: implicit conversion of pointers / chars to
index eb67a30a61e740d48033198c782c828b088e4032..a654ca0ef5acaebf13d68f7b5c248d8a233193e1 100644 (file)
@@ -119,10 +119,10 @@ static struct commonio_db group_db = {
        NULL,                   /* head */
        NULL,                   /* tail */
        NULL,                   /* cursor */
-       0,                      /* changed */
-       0,                      /* isopen */
-       0,                      /* locked */
-       0                       /* readonly */
+       false,                  /* changed */
+       false,                  /* isopen */
+       false,                  /* locked */
+       false                   /* readonly */
 };
 
 int gr_name (const char *filename)
@@ -189,7 +189,7 @@ int gr_unlock (void)
 
 void __gr_set_changed (void)
 {
-       group_db.changed = 1;
+       group_db.changed = true;
 }
 
 struct commonio_entry *__gr_get_head (void)
@@ -387,7 +387,7 @@ static int split_groups (unsigned int max_members)
                }
                new_gptr = (struct group *)new->eptr;
                new->line = NULL;
-               new->changed = 1;
+               new->changed = true;
 
                /* Enforce the maximum number of members on gptr */
                gptr->gr_mem[max_members] = NULL;