From: Juergen Perlinger Date: Mon, 11 Sep 2017 07:37:31 +0000 (+0200) Subject: [Bug 3424] Trimble Thunderbolt 1024 week millenium bug X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ca3b662f08f85cd1bb3ef8875fbd1fdacae8d05;p=thirdparty%2Fntp.git [Bug 3424] Trimble Thunderbolt 1024 week millenium bug - fix type & annoying but harmless signed/unsigned clash bk: 59b63d3b_9bskdTZOimd3XvUOOYCCg --- diff --git a/ntpd/refclock_palisade.c b/ntpd/refclock_palisade.c index 0289dd2c1..3be0e05e4 100644 --- a/ntpd/refclock_palisade.c +++ b/ntpd/refclock_palisade.c @@ -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;