]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3424] Trimble Thunderbolt 1024 week millenium bug
authorJuergen Perlinger <perlinger@ntp.org>
Mon, 11 Sep 2017 07:37:31 +0000 (09:37 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Mon, 11 Sep 2017 07:37:31 +0000 (09:37 +0200)
 - fix type & annoying but harmless signed/unsigned clash

bk: 59b63d3b_9bskdTZOimd3XvUOOYCCg

ntpd/refclock_palisade.c

index 0289dd2c15e6fc2fe61d7d5c01632c33c85b93fb..3be0e05e44c3d967e3e2c5b83b308bbd23468786 100644 (file)
@@ -418,14 +418,14 @@ get_u16(
  * unpack & fix date (the receiver provides a valid time for 1024 weeks
  * after 1997-12-14 and therefore folds back in 2017, 2037,...)
  *
- * Returns -1 on error, day-of month + (month * 32) othertwise.
+ * Returns -1 on error, day-of-month + (month * 32) othertwise.
  */
 int
 decode_date(
        struct refclockproc *pp,
        const char          *cp)
 {
-       static uint32_t s_baseday = 0;
+       static int32_t  s_baseday = 0;
        
        struct calendar jd;
        int32_t         rd;