* [Patch] btrfsck.c: bit-fields should be unsigned
@ 2009-01-19 14:28 Américo Wang
0 siblings, 0 replies; only message in thread
From: Américo Wang @ 2009-01-19 14:28 UTC (permalink / raw)
To: linux-btrfs
bit-fields should be unsigned.
Signed-off-by: WANG Cong <wangcong@zeuux.org>
---
diff --git a/btrfsck.c b/btrfsck.c
index 4a41e6d..1bf4064 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -60,10 +60,10 @@ struct extent_record {
struct inode_backref {
struct list_head list;
- int found_dir_item:1;
- int found_dir_index:1;
- int found_inode_ref:1;
- int filetype:8;
+ unsigned int found_dir_item:1;
+ unsigned int found_dir_index:1;
+ unsigned int found_inode_ref:1;
+ unsigned int filetype:8;
int errors;
u64 dir;
u64 index;
@@ -83,13 +83,13 @@ struct inode_backref {
struct inode_record {
struct list_head backrefs;
- int checked:1;
- int found_inode_item:1;
- int found_dir_item:1;
- int found_file_extent:1;
- int found_csum_item:1;
- int some_csum_missing:1;
- int nodatasum:1;
+ unsigned int checked:1;
+ unsigned int found_inode_item:1;
+ unsigned int found_dir_item:1;
+ unsigned int found_file_extent:1;
+ unsigned int found_csum_item:1;
+ unsigned int some_csum_missing:1;
+ unsigned int nodatasum:1;
int errors;
u64 ino;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-19 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 14:28 [Patch] btrfsck.c: bit-fields should be unsigned Américo Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.