summaryrefslogtreecommitdiff
path: root/arscan.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-02-24 13:50:19 +0000
committerPaul Smith <psmith@gnu.org>2004-02-24 13:50:19 +0000
commitf29b86c314e6e2b44a1eb83f1b44a3849d82655e (patch)
tree0e83f1ad4a44542b088878e8b9d6de48f16e949d /arscan.c
parentbe8c3dbc974c35fac33c8392b89482c10e4f8650 (diff)
downloadgunmake-f29b86c314e6e2b44a1eb83f1b44a3849d82655e.tar.gz
Many compiler warning cleanups.
Small fixes for W32 (from Jonathan Grant <jg-make@jguk.org>) Maintainer enhancements to clean up the tree.
Diffstat (limited to 'arscan.c')
-rw-r--r--arscan.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/arscan.c b/arscan.c
index b1e9971..ddc8ed8 100644
--- a/arscan.c
+++ b/arscan.c
@@ -737,9 +737,10 @@ ar_name_equal (char *name, char *mem, int truncated)
#ifndef VMS
/* ARGSUSED */
static long int
-ar_member_pos (int desc, char *mem, int truncated,
- long int hdrpos, long int datapos, long int size,
- long int date, int uid, int gid, int mode, char *name)
+ar_member_pos (int desc UNUSED, char *mem, int truncated,
+ long int hdrpos, long int datapos UNUSED, long int size UNUSED,
+ long int date UNUSED, int uid UNUSED, int gid UNUSED,
+ int mode UNUSED, char *name)
{
if (!ar_name_equal (name, mem, truncated))
return 0;
@@ -756,10 +757,11 @@ ar_member_pos (int desc, char *mem, int truncated,
int
ar_member_touch (char *arname, char *memname)
{
- register long int pos = ar_scan (arname, ar_member_pos, (long int) memname);
- register int fd;
+ long int pos = ar_scan (arname, ar_member_pos, (long int) memname);
+ int fd;
struct ar_hdr ar_hdr;
- register int i;
+ int i;
+ unsigned int ui;
struct stat statbuf;
if (pos < 0)
@@ -786,8 +788,8 @@ ar_member_touch (char *arname, char *memname)
goto lose;
#if defined(ARFMAG) || defined(ARFZMAG) || defined(AIAMAG) || defined(WINDOWS32)
/* Advance member's time to that time */
- for (i = 0; i < sizeof ar_hdr.ar_date; i++)
- ar_hdr.ar_date[i] = ' ';
+ for (ui = 0; ui < sizeof ar_hdr.ar_date; ui++)
+ ar_hdr.ar_date[ui] = ' ';
sprintf (ar_hdr.ar_date, "%ld", (long int) statbuf.st_mtime);
#ifdef AIAMAG
ar_hdr.ar_date[strlen(ar_hdr.ar_date)] = ' ';