summaryrefslogtreecommitdiff
path: root/arscan.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-07-21 17:52:13 -0400
committerPaul Smith <psmith@gnu.org>2013-07-21 17:52:13 -0400
commitde9068a389bb4f9dbd952abafbd63d90af463320 (patch)
tree78ca3b513d6d7e662117fc824c40f2db2b521b85 /arscan.c
parent5b231449e7ec28efb834ef929b20198a13d8d2d4 (diff)
downloadmake-de9068a389bb4f9dbd952abafbd63d90af463320.tar.gz
[Bug #39158] Source cleanups suggested by cppcheck utility.
Diffstat (limited to 'arscan.c')
-rw-r--r--arscan.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arscan.c b/arscan.c
index afdb6016..2b3cd5df 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;