gfs2-utils: master - gfs2_edit: fix careless compiler warning
Bob Peterson
rpeterso at fedoraproject.org
Thu Feb 3 17:09:53 UTC 2011
Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=7acf4bd2e7176cabf87d47f0c4d8677f99e08544
Commit: 7acf4bd2e7176cabf87d47f0c4d8677f99e08544
Parent: bdaaf3f4ef1a3df196bb900ec7ade2017362569b
Author: Bob Peterson <rpeterso at redhat.com>
AuthorDate: Thu Feb 3 11:04:20 2011 -0600
Committer: Bob Peterson <rpeterso at redhat.com>
CommitterDate: Thu Feb 3 11:04:20 2011 -0600
gfs2_edit: fix careless compiler warning
This patch fixes a couple compiler warnings I accidentally
introduced with the previous patches.
rhbz#674843
---
gfs2/edit/hexedit.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index ea3ad28..d8f8841 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -3145,9 +3145,9 @@ static void check_journal_wrap(uint64_t seq, uint64_t *highest_seq)
*highest_seq = seq;
}
-int is_meta(struct gfs2_buffer_head *bh)
+static int is_meta(struct gfs2_buffer_head *lbh)
{
- uint32_t check_magic = ((struct gfs2_meta_header *)(bh->b_data))->mh_magic;
+ uint32_t check_magic = ((struct gfs2_meta_header *)(lbh->b_data))->mh_magic;
check_magic = be32_to_cpu(check_magic);
if (check_magic == GFS2_MAGIC)
More information about the cluster-commits
mailing list