summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-01-31 21:21:55 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-10-03 21:10:36 +0200
commit38eda538ece3b9b2d25a2fedcd3b5915ea7b03ba (patch)
tree878d9b074356f0ef91585522563b6f0bdf99a451
parentf10aa66a27796a14b2420ba7764b271d28e19d3f (diff)
downloadsparse-38eda538ece3b9b2d25a2fedcd3b5915ea7b03ba.tar.gz
cleanup: make arch_msize_long static
This variable is used to set 'size_t_ctype' with the option '-msize-long'. Code that cares should directly use size_t_ctype, not 'arch_msize_long'. To be sure that some random code doesn't use 'arch_msize_long', make it local to "lib.c". Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--lib.c2
-rw-r--r--lib.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 83e6a1e1..75a4f987 100644
--- a/lib.c
+++ b/lib.c
@@ -322,8 +322,8 @@ static enum { STANDARD_C89,
STANDARD_GNU89,
STANDARD_GNU99, } standard = STANDARD_GNU89;
+static int arch_msize_long = 0;
int arch_m64 = ARCH_M64_DEFAULT;
-int arch_msize_long = 0;
int arch_big_endian = ARCH_BIG_ENDIAN;
int arch_mach = MACH_NATIVE;
diff --git a/lib.h b/lib.h
index 697c977a..18c97b4f 100644
--- a/lib.h
+++ b/lib.h
@@ -202,7 +202,6 @@ extern unsigned long fpasses;
extern int funsigned_char;
extern int arch_m64;
-extern int arch_msize_long;
extern int arch_big_endian;
extern int arch_mach;