aboutsummaryrefslogtreecommitdiff
path: root/otime.c
diff options
context:
space:
mode:
Diffstat (limited to 'otime.c')
-rw-r--r--otime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/otime.c b/otime.c
index 690fe27..d21b08b 100644
--- a/otime.c
+++ b/otime.c
@@ -130,7 +130,8 @@ time_string (time_t t, int usec, bool show_usec, struct gc_arena *gc)
}
mutex_lock_static (L_CTIME);
- buf_printf (&out, "%s", ctime ((const time_t *)&tv.tv_sec));
+ t = tv.tv_sec;
+ buf_printf (&out, "%s", ctime(&t));
mutex_unlock_static (L_CTIME);
buf_rmtail (&out, '\n');