From: nekral-guest Date: Mon, 31 Dec 2007 20:12:48 +0000 (+0000) Subject: Fix the type of the bitfields in the commonio_entry and commonio_db X-Git-Tag: 4.1.1~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9a00ea0ee81ad1041d26840fbc7b7daea314977;p=thirdparty%2Fshadow.git Fix the type of the bitfields in the commonio_entry and commonio_db structures to unsigned int (instead of int). --- diff --git a/ChangeLog b/ChangeLog index f2196f2cd..92dac098c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-31 Nicolas François + + * 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 * src/chsh.c: Split process_flags(), check_perms(), and update_shell() diff --git a/lib/commonio.h b/lib/commonio.h index b5dfc749a..ae9deb922 100644 --- a/lib/commonio.h +++ b/lib/commonio.h @@ -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 *);