diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-02 00:46:05 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-02 00:46:05 +0000 |
commit | 64b10d41da9135e16ec0c9f2ca2bfdb48e2f13ab (patch) | |
tree | 715db1d73c8d8dcd6ecdb46cbb9f18ad3a08379f /usr.sbin | |
parent | 0ea18b905eeccaa3f94b1ee7f651cc002c6eca59 (diff) |
timespec members are now named tv_{,u}sec
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/mtree/compare.c | 9 | ||||
-rw-r--r-- | usr.sbin/mtree/create.c | 5 | ||||
-rw-r--r-- | usr.sbin/mtree/spec.c | 5 |
3 files changed, 11 insertions, 8 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index 2e22d69df9e..1d836c936be 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -1,4 +1,5 @@ /* $NetBSD: compare.c,v 1.9 1995/10/22 20:12:07 pk Exp $ */ +/* $OpenBSD: compare.c,v 1.3 1996/03/02 00:46:00 tholo Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -176,13 +177,13 @@ typeerr: LABEL; * Catches nano-second differences, but doesn't display them. */ if (s->flags & F_TIME && - (s->st_mtimespec.ts_sec != p->fts_statp->st_mtimespec.ts_sec || - s->st_mtimespec.ts_nsec != p->fts_statp->st_mtimespec.ts_nsec)) { + (s->st_mtimespec.tv_sec != p->fts_statp->st_mtimespec.tv_sec || + s->st_mtimespec.tv_nsec != p->fts_statp->st_mtimespec.tv_nsec)) { LABEL; (void)printf("%smodification time (%.24s, ", - tab, ctime(&s->st_mtimespec.ts_sec)); + tab, ctime(&s->st_mtimespec.tv_sec)); (void)printf("%.24s)\n", - ctime(&p->fts_statp->st_mtimespec.ts_sec)); + ctime(&p->fts_statp->st_mtimespec.tv_sec)); tab = "\t"; } if (s->flags & F_CKSUM) diff --git a/usr.sbin/mtree/create.c b/usr.sbin/mtree/create.c index e2763491ffb..9c3f9178712 100644 --- a/usr.sbin/mtree/create.c +++ b/usr.sbin/mtree/create.c @@ -1,4 +1,5 @@ /* $NetBSD: create.c,v 1.9 1995/03/07 21:12:06 cgd Exp $ */ +/* $OpenBSD: create.c,v 1.2 1996/03/02 00:46:02 tholo Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -158,8 +159,8 @@ statf(p) output(&indent, "size=%qd", p->fts_statp->st_size); if (keys & F_TIME) output(&indent, "time=%ld.%ld", - p->fts_statp->st_mtimespec.ts_sec, - p->fts_statp->st_mtimespec.ts_nsec); + p->fts_statp->st_mtimespec.tv_sec, + p->fts_statp->st_mtimespec.tv_nsec); if (keys & F_CKSUM && S_ISREG(p->fts_statp->st_mode)) { if ((fd = open(p->fts_accpath, O_RDONLY, 0)) < 0 || crc(fd, &val, &len)) diff --git a/usr.sbin/mtree/spec.c b/usr.sbin/mtree/spec.c index 7eaefbe4452..99179609d80 100644 --- a/usr.sbin/mtree/spec.c +++ b/usr.sbin/mtree/spec.c @@ -1,4 +1,5 @@ /* $NetBSD: spec.c,v 1.6 1995/03/07 21:12:12 cgd Exp $ */ +/* $OpenBSD: spec.c,v 1.2 1996/03/02 00:46:04 tholo Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -220,11 +221,11 @@ set(t, ip) err("%s", strerror(errno)); break; case F_TIME: - ip->st_mtimespec.ts_sec = strtoul(val, &ep, 10); + ip->st_mtimespec.tv_sec = strtoul(val, &ep, 10); if (*ep != '.') err("invalid time %s", val); val = ep + 1; - ip->st_mtimespec.ts_nsec = strtoul(val, &ep, 10); + ip->st_mtimespec.tv_nsec = strtoul(val, &ep, 10); if (*ep) err("invalid time %s", val); break; |