diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-03-30 04:17:14 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-03-30 04:17:14 +0200 |
commit | 83e692e88bf2d01edb089010bdfc07b7dcc78642 (patch) | |
tree | bb7b16bc7318720eb72d37b183affd50a919fa2f | |
parent | 289e0557c24c68290b6d9b73b09674447801fdac (diff) | |
download | e2fsprogs-83e692e88bf2d01edb089010bdfc07b7dcc78642.tar.gz |
unix_io.c, pass1.c:
int -> unsigned for 1 bit wide bitfields - we cannot have a value and a sign in 1 bit.
Fixes some of the Intel C++ 8.0 warnings (-w1 level).
-rw-r--r-- | e2fsck/pass1.c | 2 | ||||
-rw-r--r-- | lib/ext2fs/unix_io.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index c6e90872..a02fd6d3 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -78,7 +78,7 @@ static void adjust_extattr_refcount(e2fsck_t ctx, ext2_refcount_t refcount, struct process_block_struct { ext2_ino_t ino; - int is_dir:1, is_reg:1, clear:1, suppress:1, + unsigned is_dir:1, is_reg:1, clear:1, suppress:1, fragmented:1, compressed:1, bbcheck:1; blk_t num_blocks; blk_t max_blocks; diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index b09e3e35..7df3243f 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -55,8 +55,8 @@ struct unix_cache { char *buf; unsigned long block; int access_time; - int dirty:1; - int in_use:1; + unsigned dirty:1; + unsigned in_use:1; }; #define CACHE_SIZE 8 |