summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/lib/humandate.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/lib/humandate.c')
-rw-r--r--usr.sbin/xntpd/lib/humandate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/xntpd/lib/humandate.c b/usr.sbin/xntpd/lib/humandate.c
index 8ea936f..b7b89bc 100644
--- a/usr.sbin/xntpd/lib/humandate.c
+++ b/usr.sbin/xntpd/lib/humandate.c
@@ -29,14 +29,14 @@ humandate(ntptime)
time_t sec;
LIB_GETBUF(bp);
-
+
sec = ntptime - JAN_1970;
tm = localtime(&sec);
(void) sprintf(bp, "%s, %s %2d %4d %2d:%02d:%02d",
days[tm->tm_wday], months[tm->tm_mon], tm->tm_mday,
1900+tm->tm_year, tm->tm_hour, tm->tm_min, tm->tm_sec);
-
+
return bp;
}
@@ -50,12 +50,12 @@ humanlogtime()
char *bp;
time_t cursec = time((time_t *) 0);
struct tm *tm = localtime(&cursec);
-
+
LIB_GETBUF(bp);
-
+
(void) sprintf(bp, "%2d %s %02d:%02d:%02d",
tm->tm_mday, months[tm->tm_mon],
tm->tm_hour, tm->tm_min, tm->tm_sec);
-
+
return bp;
}
OpenPOWER on IntegriCloud