diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-02-12 01:21:15 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-02-12 01:21:15 -0800 |
commit | 797dc4f01ee8f25708a96e1c8779d463959b73c8 (patch) | |
tree | 25af0f66f239de510b0a68f6858a59b968de533d | |
parent | b03d91e6ab7686f5dee77c1e550fda9fd7abbb68 (diff) | |
download | nasm-797dc4f01ee8f25708a96e1c8779d463959b73c8.tar.gz |
macho: make a bunch of global variables static
These variables should never have been anything but static in the
first place.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | output/outmac32.c | 12 | ||||
-rw-r--r-- | output/outmac64.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/output/outmac32.c b/output/outmac32.c index 8014b7c0..0f545108 100644 --- a/output/outmac32.c +++ b/output/outmac32.c @@ -210,12 +210,12 @@ static uint32_t strslen; /* Global file information. This should be cleaned up into either a structure or as function arguments. */ -uint32_t head_ncmds = 0; -uint32_t head_sizeofcmds = 0; -uint32_t seg_filesize = 0; -uint32_t seg_vmsize = 0; -uint32_t seg_nsects = 0; -uint32_t rel_padcnt = 0; +static uint32_t head_ncmds = 0; +static uint32_t head_sizeofcmds = 0; +static uint32_t seg_filesize = 0; +static uint32_t seg_vmsize = 0; +static uint32_t seg_nsects = 0; +static uint32_t rel_padcnt = 0; #define xstrncpy(xdst, xsrc) \ diff --git a/output/outmac64.c b/output/outmac64.c index a12a1671..cd045f5b 100644 --- a/output/outmac64.c +++ b/output/outmac64.c @@ -217,12 +217,12 @@ extern struct ofmt of_macho64; /* Global file information. This should be cleaned up into either a structure or as function arguments. */ -uint32_t head_ncmds64 = 0; -uint32_t head_sizeofcmds64 = 0; -uint64_t seg_filesize64 = 0; -uint64_t seg_vmsize64 = 0; -uint32_t seg_nsects64 = 0; -uint64_t rel_padcnt64 = 0; +static uint32_t head_ncmds64 = 0; +static uint32_t head_sizeofcmds64 = 0; +static uint64_t seg_filesize64 = 0; +static uint64_t seg_vmsize64 = 0; +static uint32_t seg_nsects64 = 0; +static uint64_t rel_padcnt64 = 0; #define xstrncpy(xdst, xsrc) \ |