[Git][NTPsec/ntpsec][master] 3 commits: A possibly futile attempt to pacify 32-bit compilers.
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Aug 16 19:52:40 UTC 2019
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
d80c97da by Eric S. Raymond at 2019-08-16T18:58:05Z
A possibly futile attempt to pacify 32-bit compilers.
- - - - -
1c988039 by Eric S. Raymond at 2019-08-16T19:08:43Z
A note about Fruno and OnCore.
- - - - -
f99a5882 by Eric S. Raymond at 2019-08-16T19:52:26Z
Typo fix on the OnCore page.
- - - - -
2 changed files:
- docs/driver_oncore.adoc
- ntpd/ntp_scanner.c
Changes:
=====================================
docs/driver_oncore.adoc
=====================================
@@ -47,6 +47,10 @@ possibility of removing this driver will be revisited.
See the CNS Clock vendor product page for specfications.
+We expect this should also work with the Furuno line of
+M12 compatibles, including the GT8736 and (now discontinued) GT8536,
+but we don't yet have confirmation from the field.
+
The driver can use use the "position hold" mode with user provided
coordinates, the receiver's built-in site-survey, or a similar algorithm
implemented in this driver to determine the antenna position.
=====================================
ntpd/ntp_scanner.c
=====================================
@@ -35,7 +35,7 @@
#include "ntp_keyword.h"
/* used to implement g and G suffixes for numeric literals in fudge offset declarations */
-#define SECONDS_IN_WEEK (7 * 24 * 60 * 60)
+#define SECONDS_IN_WEEK (7L * 24L * 60L * 60L)
#define GPS_ERA_10BIT (1024L * SECONDS_IN_WEEK)
#define GPS_ERA_13BIT (8192L * SECONDS_IN_WEEK)
#define ERA_SUFFIX(c) ((c) == 'g' || (c) == 'G')
@@ -929,7 +929,7 @@ yylex(void)
token = T_U_int;
goto normal_return;
} else if (is_double(yytext)) {
- double era_offset = 0;
+ double era_offset = 0;
yylval_was_set = true;
errno = 0;
while (ERA_SUFFIX(yytext[strlen(yytext)-1])) {
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/553309e9ecc47f21874978ba8e4b06bfa8deb739...f99a5882101c4c3463ca6f057790cded22f21c70
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/553309e9ecc47f21874978ba8e4b06bfa8deb739...f99a5882101c4c3463ca6f057790cded22f21c70
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190816/198ff86a/attachment-0001.htm>
More information about the vc
mailing list