]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2888] streamline calendar functions
authorJuergen Perlinger <perlinger@ntp.org>
Mon, 3 Aug 2015 18:59:21 +0000 (20:59 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Mon, 3 Aug 2015 18:59:21 +0000 (20:59 +0200)
 - MSVC compilation issue

bk: 55bfba09TyHk5cAc3dRA0XkSR-hfIA

libntp/ntp_calendar.c

index c543a00ad484c5766a8ff1fcc383b0e18f8b59e7..ff6ead364e5ae13a8fa0f57cd33f279914f8860c 100644 (file)
@@ -79,6 +79,8 @@
 #  else
 #   define TARGET_HAS_2CPL 0
 #  endif
+# else
+#  define TARGET_HAS_2CPL 0
 # endif
 #endif
 
@@ -875,7 +877,7 @@ ntpcal_rd_to_date(
 {
        ntpcal_split split;
        int          leapy;
-       uint         ymask;
+       u_int        ymask;
 
        /* Get day-of-week first. Since rd is signed, the remainder can
         * be in the range [-6..+6], but the assignment to an unsigned