summaryrefslogtreecommitdiff
path: root/ufs-utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-23 23:39:56 +0000
committerMiles Bader <miles@gnu.org>1996-07-23 23:39:56 +0000
commitf85c152b29aa3a157ebe433bbf5aa961f0eb2883 (patch)
tree37860ee5363296969121c2f0903a051fa9dc7652 /ufs-utils
parent171c541e8ad43741fb06f3cc35c88feea3075c5a (diff)
(timespec_rep): `struct timespec' now uses a field prefix of `tv_'.
Diffstat (limited to 'ufs-utils')
-rw-r--r--ufs-utils/stati.c6
1 files changed, 3 insertions, 3 deletions
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;
}