diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
commit | daa35edbd086b27357d8f048ede7c84dcc520748 (patch) | |
tree | 8dd520f3dfb7df4f73618d886e20c1154f3e5e5f /usr.sbin/xntpd/lib/caltontp.c | |
parent | d2d2eed18837c57f97405aa88134457f8d97640d (diff) |
Notes
Diffstat (limited to 'usr.sbin/xntpd/lib/caltontp.c')
-rw-r--r-- | usr.sbin/xntpd/lib/caltontp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/xntpd/lib/caltontp.c b/usr.sbin/xntpd/lib/caltontp.c index f5da0ab761e80..a0c8f610c7dea 100644 --- a/usr.sbin/xntpd/lib/caltontp.c +++ b/usr.sbin/xntpd/lib/caltontp.c @@ -1,4 +1,4 @@ -/* caltontp.c,v 3.1 1993/07/06 01:08:04 jbj Exp +/* * caltontp - convert a julian date to an NTP time */ #include <sys/types.h> @@ -25,13 +25,13 @@ static u_short calmonthtab[12] = { (MAR+APR+MAY+JUN+JUL+AUG+SEP+OCT+NOV+DEC+JAN), /* February */ }; -U_LONG +u_long caltontp(jt) register const struct calendar *jt; { register int cyear; register int resyear; - register U_LONG nt; + register u_long nt; register int yearday; /* @@ -77,14 +77,14 @@ caltontp(jt) } } - nt = TIMESDPERC((U_LONG)cyear); + nt = TIMESDPERC((u_long)cyear); while (resyear-- > 0) nt += DAYSPERYEAR; - nt += (U_LONG) (yearday - 1); + nt += (u_long) (yearday - 1); - nt = TIMES24(nt) + (U_LONG)jt->hour; - nt = TIMES60(nt) + (U_LONG)jt->minute; - nt = TIMES60(nt) + (U_LONG)jt->second; + nt = TIMES24(nt) + (u_long)jt->hour; + nt = TIMES60(nt) + (u_long)jt->minute; + nt = TIMES60(nt) + (u_long)jt->second; return nt + MAR1900; } |