diff mbox

[15/15] kpartx: Move the declaration of a global variable from .c to .h

Message ID 2e877509-24cd-6682-5cf5-1ba9f1f065a7@sandisk.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

Bart Van Assche Oct. 21, 2016, 6:46 p.m. UTC
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
---
 kpartx/gpt.c    | 1 -
 kpartx/kpartx.h | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/kpartx/gpt.c b/kpartx/gpt.c
index 3511886..6ef20f9 100644
--- a/kpartx/gpt.c
+++ b/kpartx/gpt.c
@@ -504,7 +504,6 @@  compare_gpts(gpt_header *pgpt, gpt_header *agpt, uint64_t lastlba)
 static int
 find_valid_gpt(int fd, gpt_header ** gpt, gpt_entry ** ptes)
 {
-	extern int force_gpt;
 	int good_pgpt = 0, good_agpt = 0, good_pmbr = 0;
 	gpt_header *pgpt = NULL, *agpt = NULL;
 	gpt_entry *pptes = NULL, *aptes = NULL;
diff --git a/kpartx/kpartx.h b/kpartx/kpartx.h
index a55c211..52920e4 100644
--- a/kpartx/kpartx.h
+++ b/kpartx/kpartx.h
@@ -39,6 +39,8 @@  struct slice {
 
 typedef int (ptreader)(int fd, struct slice all, struct slice *sp, int ns);
 
+extern int force_gpt;
+
 extern ptreader read_dos_pt;
 extern ptreader read_bsd_pt;
 extern ptreader read_solaris_pt;