]> granicus.if.org Git - shadow/commitdiff
Fix the type of the bitfields in the commonio_entry and commonio_db
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 31 Dec 2007 20:12:48 +0000 (20:12 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 31 Dec 2007 20:12:48 +0000 (20:12 +0000)
structures to unsigned int (instead of int).

ChangeLog
lib/commonio.h

index f2196f2cdb1baed6e79c6cc93482ff497abd36b5..92dac098cd81e2f0326db49d9769347ab26ff9f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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()
index b5dfc749a59a367d29f772496221c180ca3369c7..ae9deb92220b3f13e30eb638920131603114d33c 100644 (file)
@@ -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 *);