gfs2-utils: master - libgfs2: Fix 'dubious one-bit signed bitfield' sparse errors

andyp andyp@fedoraproject.org
Wed Aug 19 13:33:00 GMT 2009


Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=3f99bb7f4ddf981332a0acc80c0df51084ae56ad
Commit:        3f99bb7f4ddf981332a0acc80c0df51084ae56ad
Parent:        67839817dab9251c937bf10d2f01bef101395154
Author:        Andrew Price <andy@andrewprice.me.uk>
AuthorDate:    Wed Aug 19 09:24:31 2009 +0100
Committer:     Andrew Price <andy@andrewprice.me.uk>
CommitterDate: Wed Aug 19 14:27:45 2009 +0100

libgfs2: Fix 'dubious one-bit signed bitfield' sparse errors

Fix these sparse errors:

libgfs2.h:575:11: error: dubious one-bit signed bitfield
libgfs2.h:576:10: error: dubious one-bit signed bitfield
libgfs2.h:577:13: error: dubious one-bit signed bitfield

Signed-off-by: Andrew Price <andy@andrewprice.me.uk>
Acked-by: Bob Peterson <rpeterso@redhat.com>
---
 gfs2/libgfs2/libgfs2.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h
index 558283d..b3c9483 100644
--- a/gfs2/libgfs2/libgfs2.h
+++ b/gfs2/libgfs2/libgfs2.h
@@ -572,9 +572,9 @@ extern struct gfs2_inode *gfs_inode_get(struct gfs2_sbd *sdp,
 /* gfs2_log.c */
 struct gfs2_options {
 	char *device;
-	int yes:1;
-	int no:1;
-	int query:1;
+	unsigned int yes:1;
+	unsigned int no:1;
+	unsigned int query:1;
 };
 
 #define MSG_DEBUG       7



More information about the Cluster-cvs mailing list