]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog, gpstolfp.c, msyslog.c:
authorHarlan Stenn <stenn@ntp.org>
Sat, 16 Oct 1999 05:22:32 +0000 (05:22 -0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 16 Oct 1999 05:22:32 +0000 (05:22 -0000)
  * libntp/msyslog.c:
  * libntp/gpstolfp.c:
  Lint cleanup
  From: Jonathan Stone <jonathan@dsg.stanford.edu>

bk: 38080b98u_5AssrzlvlamGPwoUTtBQ

ChangeLog
libntp/gpstolfp.c
libntp/msyslog.c

index 3bcf1b6ca84ea66562fd09e9d81ba9ca764235ad..e97006463fead860746005f09b8f424cb099c688 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-10-16  Harlan Stenn  <stenn@whimsy.udel.edu>
 
+       * libntp/msyslog.c: 
+       * libntp/gpstolfp.c: 
+       Lint cleanup
+       From: Jonathan Stone <jonathan@dsg.stanford.edu>
+
        * parseutil/dcfd.c:  abs() -> l_abs(), time.h (AIX 4.3.2 patches)
        From: Dana Kaempen <decay@flash.net>
 
index bdf290447bc62e45a989298463d4592927a91a72..5b3171336f5772ddc11ef9e31d4785b0af10a6fe 100644 (file)
@@ -7,7 +7,7 @@
  */
 #include "ntp_fp.h"
 
-#define GPSORIGIN      (unsigned)(2524953600)  /* NTP origin - GPS origin in seconds */
+#define GPSORIGIN      (unsigned)(2524953600UL)  /* NTP origin - GPS origin in seconds */
 #define SECSPERWEEK    (unsigned)(604800)      /* seconds per week - GPS tells us about weeks */
 #define GPSWRAP                990     /* assume week count less than this in the previous epoch */
 
index d5a25fc33095dc6ef7152b2f5f5b736ef70be40f..dfb1627132339dc4500b9179b96732a52493ce12 100644 (file)
@@ -100,7 +100,7 @@ void msyslog(int level, const char *fmt, ...)
                if ((unsigned)olderrno > sys_nerr)
                    sprintf((char *)(err = xerr), "error %d", olderrno);
                else
-                   err = sys_errlist[olderrno];
+                   err = (char*)sys_errlist[olderrno];
 #elif defined(VMS) || defined (SYS_VXWORKS)
                err = strerror(olderrno);
 #else  /* SYS_WINNT */