diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
commit | 96f7e86b724c797f2b44beaaf956cf14550e57df (patch) | |
tree | 65fc9d6eb6e84f9e629426ab09186ab1373f9bcb /usr.sbin/xntpd/lib/humandate.c | |
parent | 1185c9048d38483a3f99f3065590713d8bcda610 (diff) | |
download | FreeBSD-src-96f7e86b724c797f2b44beaaf956cf14550e57df.zip FreeBSD-src-96f7e86b724c797f2b44beaaf956cf14550e57df.tar.gz |
xntp 3.4e from Dave Mills @ UDel
Diffstat (limited to 'usr.sbin/xntpd/lib/humandate.c')
-rw-r--r-- | usr.sbin/xntpd/lib/humandate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/xntpd/lib/humandate.c b/usr.sbin/xntpd/lib/humandate.c index 464ed6b..8ea936f 100644 --- a/usr.sbin/xntpd/lib/humandate.c +++ b/usr.sbin/xntpd/lib/humandate.c @@ -1,4 +1,4 @@ -/* humandate.c,v 3.1 1993/07/06 01:08:24 jbj Exp +/* * humandate - convert an NTP (or the current) time to something readable */ #include <stdio.h> @@ -22,16 +22,16 @@ static char *days[] = { char * humandate(ntptime) - U_LONG ntptime; + u_long ntptime; { char *bp; struct tm *tm; - U_LONG sec; + time_t sec; LIB_GETBUF(bp); sec = ntptime - JAN_1970; - tm = localtime((LONG *)&sec); + tm = localtime(&sec); (void) sprintf(bp, "%s, %s %2d %4d %2d:%02d:%02d", days[tm->tm_wday], months[tm->tm_mon], tm->tm_mday, |