From f29b86c314e6e2b44a1eb83f1b44a3849d82655e Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 24 Feb 2004 13:50:19 +0000 Subject: Many compiler warning cleanups. Small fixes for W32 (from Jonathan Grant ) Maintainer enhancements to clean up the tree. --- arscan.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'arscan.c') 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)] = ' '; -- cgit v1.2.3