cluster: RHEL6 - gfs2_edit: fix careless compiler warning
Bob Peterson
rpeterso at fedoraproject.org
Thu Feb 3 18:35:46 UTC 2011
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8bad0161fb746d58889758d5d2b0e28ed8e3bcbc
Commit: 8bad0161fb746d58889758d5d2b0e28ed8e3bcbc
Parent: 578af431fb74985e39ba8c3acf43459bd476947f
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:33:25 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 2a88a40..c82ddae 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -3143,9 +3143,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