summaryrefslogtreecommitdiff
path: root/ufs-utils/stati.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs-utils/stati.c')
-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;
}