]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
humandate.c, caljulian.c, ntp_fp.h:
authorMarc Brett <brett@ntp.org>
Sat, 7 Feb 2004 17:53:39 +0000 (17:53 +0000)
committerMarc Brett <brett@ntp.org>
Sat, 7 Feb 2004 17:53:39 +0000 (17:53 +0000)
  Syntax changes to allow K&R compilers

bk: 40252623dhYDNqnQXazVnjN3AZKmTg

include/ntp_fp.h
libntp/caljulian.c
libntp/humandate.c

index 256bab830a04f6a84f85fb34c86f4d57bf1dc658..d76b615cfd38ab870ef3545776f32df9bd900c95 100644 (file)
@@ -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))
 
index b8db27c2bf312bb432b3d76f932a424fd9a02b07..71123dfe20d322b774c684aec0f452b9c53d173c 100644 (file)
@@ -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,
index 2478fcc733f73d2d50d0543bcfa002db728b52ae..630c8713347ee33d73363a24df1fa6f682220d50 100644 (file)
@@ -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