The changed, isopen, locked, and readonly fields of the db are booleans.
This commit is contained in:
parent
6f88bcf581
commit
22de221c21
@ -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>
|
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* lib/sgetgrent.c: implicit conversion of pointers / chars to
|
* lib/sgetgrent.c: implicit conversion of pointers / chars to
|
||||||
|
@ -119,10 +119,10 @@ static struct commonio_db group_db = {
|
|||||||
NULL, /* head */
|
NULL, /* head */
|
||||||
NULL, /* tail */
|
NULL, /* tail */
|
||||||
NULL, /* cursor */
|
NULL, /* cursor */
|
||||||
0, /* changed */
|
false, /* changed */
|
||||||
0, /* isopen */
|
false, /* isopen */
|
||||||
0, /* locked */
|
false, /* locked */
|
||||||
0 /* readonly */
|
false /* readonly */
|
||||||
};
|
};
|
||||||
|
|
||||||
int gr_name (const char *filename)
|
int gr_name (const char *filename)
|
||||||
@ -189,7 +189,7 @@ int gr_unlock (void)
|
|||||||
|
|
||||||
void __gr_set_changed (void)
|
void __gr_set_changed (void)
|
||||||
{
|
{
|
||||||
group_db.changed = 1;
|
group_db.changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct commonio_entry *__gr_get_head (void)
|
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_gptr = (struct group *)new->eptr;
|
||||||
new->line = NULL;
|
new->line = NULL;
|
||||||
new->changed = 1;
|
new->changed = true;
|
||||||
|
|
||||||
/* Enforce the maximum number of members on gptr */
|
/* Enforce the maximum number of members on gptr */
|
||||||
gptr->gr_mem[max_members] = NULL;
|
gptr->gr_mem[max_members] = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user