Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=5375e2b9b50... Commit: 5375e2b9b5032ae3c08fefc10f067762ca2db19b Parent: 054af0f8049c21a3d9ec6564d61332376faacc75 Author: Andrew Price anprice@redhat.com AuthorDate: Thu Feb 4 10:28:10 2016 +0000 Committer: Andrew Price anprice@redhat.com CommitterDate: Thu Feb 4 10:29:52 2016 +0000
gfs2_edit: Don't export bh
bh is now only used in hexedit.c so restrict its visibility to that file.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/edit/gfs2hex.c | 1 - gfs2/edit/hexedit.c | 1 + gfs2/edit/hexedit.h | 1 - 3 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/gfs2/edit/gfs2hex.c b/gfs2/edit/gfs2hex.c index 4915e5c..1f55a43 100644 --- a/gfs2/edit/gfs2hex.c +++ b/gfs2/edit/gfs2hex.c @@ -29,7 +29,6 @@ } while (FALSE);
struct gfs2_sb sb; -struct gfs2_buffer_head *bh; struct gfs2_dinode di; int line, termlines, modelines[DMODES]; char edit_fmt[80]; diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c index 831ca45..a89ae36 100644 --- a/gfs2/edit/hexedit.c +++ b/gfs2/edit/hexedit.c @@ -34,6 +34,7 @@ const char *allocdesc[2][5] = { {"Free ", "Data ", "Unlnk", "Meta ", "Resrv"}, {"Free ", "Data ", "FreeM", "Meta ", "Resrv"},};
+struct gfs2_buffer_head *bh; struct gfs2_rgrp *lrgrp; struct gfs2_meta_header *lmh; struct gfs2_dinode *ldi; diff --git a/gfs2/edit/hexedit.h b/gfs2/edit/hexedit.h index 15586d4..f3220a7 100644 --- a/gfs2/edit/hexedit.h +++ b/gfs2/edit/hexedit.h @@ -37,7 +37,6 @@ extern char estring[1024]; /* edit string */ extern char efield[64]; extern uint64_t dev_offset; extern uint64_t max_block; -extern struct gfs2_buffer_head *bh; extern int termlines; extern int insert; extern const char *termtype;