]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 757] Lose ULONG_CONST()
authorHarlan Stenn <stenn@ntp.org>
Sat, 6 Jan 2007 09:05:36 +0000 (04:05 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 6 Jan 2007 09:05:36 +0000 (04:05 -0500)
bk: 459f6660GFAvHe6r4MFroPm6OcZHhQ

ChangeLog
configure.ac
libparse/gpstolfp.c
m4/hs_ulong_const.m4 [deleted file]
ntpd/ntp_control.c
util/ntp-keygen.c

index 7b3d392123a58b4efeb4dfa3247f2a89171868f1..ac905936ee079800e5ef00b18b996c447e51b2a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 757] Lose ULONG_CONST().
 * [Bug 756] Require ANSI C (function prototypes).
 * codec (audio) and ICOM changes from Dave Mills.
 \f
index 5f44832e5fdda7c44c856fefc3b55609e611935b..5fe93001d2672197980ad734ada2d5bec513bf5e 100644 (file)
@@ -311,8 +311,6 @@ AC_ISC_POSIX
 AC_PATH_PROG(PATH_SH, sh)
 AC_PATH_PROG(PATH_PERL, perl)
 
-hs_ULONG_CONST
-
 case "$host" in
  *-*-vxworks*)
     ac_link="$ac_link $VX_KERNEL"
index fd7be31241b418093f87c6eb6cfb0fc5f3010c39..9f1a9bfd601dd9ec28c5addaa1484b72cfc7cc3e 100644 (file)
@@ -34,7 +34,7 @@
  */
 #include "ntp_fp.h"
 
-#define GPSORIGIN      ULONG_CONST(2524953600) /* NTP origin - GPS origin in seconds */
+#define GPSORIGIN      2524953600UL    /* NTP origin - GPS origin in seconds */
 #define SECSPERWEEK    (unsigned)(604800)      /* seconds per week - GPS tells us about weeks */
 #define GPSWRAP                990     /* assume week count less than this in the previous epoch */
 
diff --git a/m4/hs_ulong_const.m4 b/m4/hs_ulong_const.m4
deleted file mode 100644 (file)
index c9aa653..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-AC_DEFUN([hs_ULONG_CONST],
-[ AH_TEMPLATE(ULONG_CONST, [How do we create unsigned long constants?])
- AC_DEFINE([ULONG_CONST(a)], [a ## UL])])
index 58873776b37225b6d5a365696666c264ed35f48d..a16811533d600c0913a75d01c1e69f13df9da142 100644 (file)
@@ -1111,8 +1111,8 @@ ctl_putts(
 
        *cp++ = '=';
        (void) sprintf(cp, "0x%08lx.%08lx",
-                          ts->l_ui & ULONG_CONST(0xffffffff),
-                          ts->l_uf & ULONG_CONST(0xffffffff));
+                          ts->l_ui & 0xffffffffUL,
+                          ts->l_uf & 0xffffffffUL);
        while (*cp != '\0')
                cp++;
        ctl_putdata(buffer, (unsigned)( cp - buffer ), 0);
index 6f02eeb1a4599ca7e12e364ce2ff3a334065653e..4ff04eedd2f73a5cb7ecf2bffffa909f117a936e 100644 (file)
@@ -121,7 +121,7 @@ extern      int     ntp_getopt      (int, char **, const char *);
  * Cryptodefines
  */
 #define        MD5KEYS         16      /* number of MD5 keys generated */
-#define        JAN_1970        ULONG_CONST(2208988800) /* NTP seconds */
+#define        JAN_1970        2208988800UL /* NTP seconds */
 #define YEAR           ((long)60*60*24*365) /* one year in seconds */
 #define MAXFILENAME    256     /* max file name length */
 #define MAXHOSTNAME    256     /* max host name length */