From 87ac68fe79a2e3b0d149135d40d8cbc5500024af Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 21 Jul 2013 17:52:13 -0400 Subject: [Bug #39158] Source cleanups suggested by cppcheck utility. --- arscan.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'arscan.c') diff --git a/arscan.c b/arscan.c index afdb601..2b3cd5d 100644 --- a/arscan.c +++ b/arscan.c @@ -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; -- cgit v1.2.3