From: Marc Brett Date: Sat, 7 Feb 2004 17:53:39 +0000 (+0000) Subject: humandate.c, caljulian.c, ntp_fp.h: X-Git-Tag: NTP_4_2_3~182^2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7a0005157fbacec094d6e8e2992a0a3d76d032a;p=thirdparty%2Fntp.git humandate.c, caljulian.c, ntp_fp.h: Syntax changes to allow K&R compilers bk: 40252623dhYDNqnQXazVnjN3AZKmTg --- diff --git a/include/ntp_fp.h b/include/ntp_fp.h index 256bab830..d76b615cf 100644 --- a/include/ntp_fp.h +++ b/include/ntp_fp.h @@ -358,6 +358,8 @@ extern void get_systime P((l_fp *)); extern int step_systime P((double)); extern int adj_systime P((double)); +extern struct tm * ntp2unix_tm P((u_long ntp, int local)); + #define lfptoa(_fpv, _ndec) mfptoa((_fpv)->l_ui, (_fpv)->l_uf, (_ndec)) #define lfptoms(_fpv, _ndec) mfptoms((_fpv)->l_ui, (_fpv)->l_uf, (_ndec)) diff --git a/libntp/caljulian.c b/libntp/caljulian.c index b8db27c2b..71123dfe2 100644 --- a/libntp/caljulian.c +++ b/libntp/caljulian.c @@ -6,7 +6,9 @@ #include "ntp_types.h" #include "ntp_calendar.h" #include "ntp_stdlib.h" +#include "ntp_fp.h" +#if 0 /* * calmonthtab - days-in-the-month table */ @@ -24,7 +26,6 @@ static u_short calmonthtab[11] = { NOV }; -#if 0 void caljulian( u_long ntptime, @@ -124,8 +125,6 @@ caljulian( does so for the unix epoch, i.e. works after 2038. */ -struct tm * ntp2unix_tm(u_long ntp, int local); - void caljulian( u_long ntptime, diff --git a/libntp/humandate.c b/libntp/humandate.c index 2478fcc73..630c87133 100644 --- a/libntp/humandate.c +++ b/libntp/humandate.c @@ -15,8 +15,6 @@ static const char *days[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; -struct tm * ntp2unix_tm(u_long ntp, int local); - char * humandate( u_long ntptime