From 3e277dbdb4c09f45f2b8c460917a89bca86d20e1 Mon Sep 17 00:00:00 2001 From: dillon Date: Sun, 28 Oct 2001 20:19:14 +0000 Subject: Properly convert long to time_t --- sbin/ipfw/ipfw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/ipfw') diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index b318251..9794770 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -202,8 +202,9 @@ show_ipfw(struct ip_fw *chain) if (do_time) { if (chain->timestamp) { char timestr[30]; + time_t t = long_to_time(chain->timestamp); - strcpy(timestr, ctime((time_t *)&chain->timestamp)); + strcpy(timestr, ctime(&t)); *strchr(timestr, '\n') = '\0'; printf("%s ", timestr); } else { -- cgit v1.1