diff options
author | Paul Smith <psmith@gnu.org> | 2013-07-21 17:52:13 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-07-21 17:52:13 -0400 |
commit | 87ac68fe79a2e3b0d149135d40d8cbc5500024af (patch) | |
tree | 78ca3b513d6d7e662117fc824c40f2db2b521b85 /arscan.c | |
parent | 72462ef1e181fc99837ba3077f9b5d192f16f6aa (diff) | |
download | gunmake-87ac68fe79a2e3b0d149135d40d8cbc5500024af.tar.gz |
[Bug #39158] Source cleanups suggested by cppcheck utility.
Diffstat (limited to 'arscan.c')
-rw-r--r-- | arscan.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -328,12 +328,10 @@ ar_scan (const char *archive, ar_member_func_t function, const void *arg) { #ifdef AIAMAG FL_HDR fl_header; -#ifdef AIAMAGBIG +# ifdef AIAMAGBIG int big_archive = 0; FL_HDR_BIG fl_header_big; -#endif -#else - int long_name = 0; +# endif #endif char *namemap = 0; int desc = open (archive, O_RDONLY, 0); @@ -461,6 +459,7 @@ ar_scan (const char *archive, ar_member_func_t function, const void *arg) char namebuf[sizeof member_header.ar_name + 1]; char *name; int is_namemap; /* Nonzero if this entry maps long names. */ + int long_name = 0; #endif long int eltsize; int eltmode; |