From 94c4683113dc0db241f40c629a74790f13121b96 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 23 Jul 1996 23:39:56 +0000 Subject: (timespec_rep): `struct timespec' now uses a field prefix of `tv_'. --- ufs-utils/stati.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ufs-utils') diff --git a/ufs-utils/stati.c b/ufs-utils/stati.c index 699d8f5c..2c0147d0 100644 --- a/ufs-utils/stati.c +++ b/ufs-utils/stati.c @@ -110,16 +110,16 @@ timespec_rep (struct timespec *ts) { static char buf[200]; char *p = buf; - if (ts->ts_sec || ts->ts_nsec) + if (ts->tv_sec || ts->tv_nsec) { - time_t time = ts->ts_sec; + time_t time = ts->tv_sec; strcpy (buf, ctime (&time)); p += strlen (buf); if (p[-1] == '\n') p--; *p++ = ' '; } - snprintf (p, buf + sizeof buf - p, "[%ld, %ld]", ts->ts_sec, ts->ts_nsec); + snprintf (p, buf + sizeof buf - p, "[%ld, %ld]", ts->tv_sec, ts->tv_nsec); return buf; } -- cgit v1.2.3