aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ranlib
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
committerBruce Evans <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
commit22694ebad57c49178f28bcc781d8ee9eb5868dd8 (patch)
treeef3eba30b83841c253ee8676afea71ed9c896f0c /usr.bin/ranlib
parentb45d09e830251ff82c05a1bdcd1349a94a2a5301 (diff)
Notes
Diffstat (limited to 'usr.bin/ranlib')
-rw-r--r--usr.bin/ranlib/touch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ranlib/touch.c b/usr.bin/ranlib/touch.c
index 93670b39b696..bfb10f727616 100644
--- a/usr.bin/ranlib/touch.c
+++ b/usr.bin/ranlib/touch.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: touch.c,v 1.4 1997/08/04 06:48:25 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -89,7 +89,7 @@ settime(afd)
size = SARMAG + sizeof(hdr->ar_name);
if (lseek(afd, size, SEEK_SET) == (off_t)-1)
error(archive);
- (void)sprintf(buf, "%-12ld", time((time_t *)NULL) + RANLIBSKEW);
+ (void)sprintf(buf, "%-12ld", (long)time((time_t *)NULL) + RANLIBSKEW);
if (write(afd, buf, sizeof(hdr->ar_date)) != sizeof(hdr->ar_date))
error(archive);
}