From: nasm-bot f. H. P. A. <hp...@zy...> - 2016-02-12 09:30:18
|
Commit-ID: 797dc4f01ee8f25708a96e1c8779d463959b73c8 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=797dc4f01ee8f25708a96e1c8779d463959b73c8 Author: H. Peter Anvin <hp...@zy...> AuthorDate: Fri, 12 Feb 2016 01:21:15 -0800 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Fri, 12 Feb 2016 01:21:15 -0800 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 <hp...@zy...> --- output/outmac32.c | 12 ++++++------ output/outmac64.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/output/outmac32.c b/output/outmac32.c index 8014b7c..0f54510 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 a12a167..cd045f5 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) \ |