Fix the type of the bitfields in the commonio_entry and commonio_db
structures to unsigned int (instead of int).
This commit is contained in:
parent
0cc661a2cf
commit
b9a00ea0ee
@ -1,3 +1,8 @@
|
||||
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* lib/commonio.h: Fix the type of the bitfields in the commonio_entry
|
||||
and commonio_db structures to unsigned int (instead of int).
|
||||
|
||||
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/chsh.c: Split process_flags(), check_perms(), and update_shell()
|
||||
|
@ -10,7 +10,7 @@ struct commonio_entry {
|
||||
char *line;
|
||||
void *eptr; /* struct passwd, struct spwd, ... */
|
||||
struct commonio_entry *prev, *next;
|
||||
int changed:1;
|
||||
unsigned int changed:1;
|
||||
};
|
||||
|
||||
/*
|
||||
@ -93,10 +93,10 @@ struct commonio_db {
|
||||
/*
|
||||
* Various flags.
|
||||
*/
|
||||
int changed:1;
|
||||
int isopen:1;
|
||||
int locked:1;
|
||||
int readonly:1;
|
||||
unsigned int changed:1;
|
||||
unsigned int isopen:1;
|
||||
unsigned int locked:1;
|
||||
unsigned int readonly:1;
|
||||
};
|
||||
|
||||
extern int commonio_setname (struct commonio_db *, const char *);
|
||||
|
Loading…
Reference in New Issue
Block a user