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
commit94c4683113dc0db241f40c629a74790f13121b96 (patch)
tree5e54a573fc7488adb7e2b75a0598504988caf086 /ufs-utils
parent9136eaaae4b86aa5e10f84ada7c3bb57f4472e09 (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;
}