From b9a00ea0ee81ad1041d26840fbc7b7daea314977 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Mon, 31 Dec 2007 20:12:48 +0000 Subject: [PATCH] Fix the type of the bitfields in the commonio_entry and commonio_db structures to unsigned int (instead of int). --- ChangeLog | 5 +++++ lib/commonio.h | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f2196f2c..92dac098 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 b5dfc749..ae9deb92 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 *);