diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-02 00:40:58 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-02 00:40:58 +0000 |
commit | 0ea18b905eeccaa3f94b1ee7f651cc002c6eca59 (patch) | |
tree | 0fa04d20a8aec7231e5edb758d5e490af53f7852 | |
parent | efa74046d0bd95be1322c9deb3f963a0fe069732 (diff) |
timespec members are now named tv_{,u}sec again
-rw-r--r-- | usr.bin/ar/archive.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ar/archive.c b/usr.bin/ar/archive.c index ceb573fec41..42e94fb149a 100644 --- a/usr.bin/ar/archive.c +++ b/usr.bin/ar/archive.c @@ -1,4 +1,5 @@ /* $NetBSD: archive.c,v 1.7 1995/03/26 03:27:46 glass Exp $ */ +/* $OpenBSD: archive.c,v 1.2 1996/03/02 00:40:57 tholo Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -231,17 +232,17 @@ put_arobj(cfp, sb) name, OLDARMAXNAME, name); (void)fflush(stderr); } - (void)sprintf(hb, HDR3, name, sb->st_mtimespec.ts_sec, + (void)sprintf(hb, HDR3, name, sb->st_mtimespec.tv_sec, sb->st_uid, sb->st_gid, sb->st_mode, sb->st_size, ARFMAG); lname = 0; } else if (lname > sizeof(hdr->ar_name) || strchr(name, ' ')) (void)sprintf(hb, HDR1, AR_EFMT1, lname, - sb->st_mtimespec.ts_sec, sb->st_uid, sb->st_gid, + sb->st_mtimespec.tv_sec, sb->st_uid, sb->st_gid, sb->st_mode, sb->st_size + lname, ARFMAG); else { lname = 0; - (void)sprintf(hb, HDR2, name, sb->st_mtimespec.ts_sec, + (void)sprintf(hb, HDR2, name, sb->st_mtimespec.tv_sec, sb->st_uid, sb->st_gid, sb->st_mode, sb->st_size, ARFMAG); } |