The changed, isopen, locked, and readonly fields of the db are booleans.

This commit is contained in:
nekral-guest 2008-05-26 08:34:04 +00:00
parent 6f88bcf581
commit 22de221c21
2 changed files with 11 additions and 6 deletions

View File

@ -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

View 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;