diff options
author | ed <ed@FreeBSD.org> | 2010-03-28 13:16:08 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-03-28 13:16:08 +0000 |
commit | 543b5e901b744468356547ee61975d9d44fa8f32 (patch) | |
tree | 5c6d55680c37f3cbfd9460fbab60d39b1ecb8ae7 /usr.bin/gzip/gzip.c | |
parent | 4f08ecd7ed8b39a0e0cd094967835fa85d105793 (diff) | |
download | FreeBSD-src-543b5e901b744468356547ee61975d9d44fa8f32.zip FreeBSD-src-543b5e901b744468356547ee61975d9d44fa8f32.tar.gz |
Change all our own code to use st_*tim instead of st_*timespec.
Also remove some local patches to diff(1) which are now unneeded.
Diffstat (limited to 'usr.bin/gzip/gzip.c')
-rw-r--r-- | usr.bin/gzip/gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c index e9371d2..e8e75aa 100644 --- a/usr.bin/gzip/gzip.c +++ b/usr.bin/gzip/gzip.c @@ -1088,8 +1088,8 @@ copymodes(int fd, const struct stat *sbp, const char *file) if (fchmod(fd, sb.st_mode) < 0) maybe_warn("couldn't fchmod: %s", file); - TIMESPEC_TO_TIMEVAL(×[0], &sb.st_atimespec); - TIMESPEC_TO_TIMEVAL(×[1], &sb.st_mtimespec); + TIMESPEC_TO_TIMEVAL(×[0], &sb.st_atim); + TIMESPEC_TO_TIMEVAL(×[1], &sb.st_mtim); if (futimes(fd, times) < 0) maybe_warn("couldn't utimes: %s", file); |