[ntpsec-main commit] In ntpd/refclock_gpsdjson.c LLONG -> LONG in some limit macros.

Eric S. Raymond esr at ntpsec.org
Mon Nov 2 17:52:00 UTC 2015


Module:    ntpsec-main
Branch:    master
Commit:    e5d92396b150c639a0f2ebec8192d4290f2e6999
Changeset: http://git.ntpsec.org//commit/?id=e5d92396b150c639a0f2ebec8192d4290f2e6999

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Mon Nov  2 12:49:41 2015 -0500

In ntpd/refclock_gpsdjson.c LLONG -> LONG in some limit macros.

NetBSD does not have LLONG_MAX/LLONG_MIN.  We can live with a LONG
limit here.

---

 ntpd/refclock_gpsdjson.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ntpd/refclock_gpsdjson.c b/ntpd/refclock_gpsdjson.c
index f7e113c..4c28c2a 100644
--- a/ntpd/refclock_gpsdjson.c
+++ b/ntpd/refclock_gpsdjson.c
@@ -125,8 +125,8 @@ typedef int tok_ref;
  */
 typedef signed   long long int json_int;
 typedef unsigned long long int json_uint;
-#define JSON_INT_MAX LLONG_MAX
-#define JSON_INT_MIN LLONG_MIN
+#define JSON_INT_MAX LONG_MAX
+#define JSON_INT_MIN LONG_MIN
 
 /* =====================================================================
  * header stuff we need



More information about the vc mailing list