From: Harlan Stenn Date: Sat, 16 Oct 1999 05:22:32 +0000 (-0000) Subject: ChangeLog, gpstolfp.c, msyslog.c: X-Git-Tag: NTP_4_98_c~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6fdb0a4e50e3db1b2e2f0276fc3ba91f7230cc2;p=thirdparty%2Fntp.git ChangeLog, gpstolfp.c, msyslog.c: * libntp/msyslog.c: * libntp/gpstolfp.c: Lint cleanup From: Jonathan Stone bk: 38080b98u_5AssrzlvlamGPwoUTtBQ --- diff --git a/ChangeLog b/ChangeLog index 3bcf1b6ca8..e97006463f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1999-10-16 Harlan Stenn + * libntp/msyslog.c: + * libntp/gpstolfp.c: + Lint cleanup + From: Jonathan Stone + * parseutil/dcfd.c: abs() -> l_abs(), time.h (AIX 4.3.2 patches) From: Dana Kaempen diff --git a/libntp/gpstolfp.c b/libntp/gpstolfp.c index bdf290447b..5b3171336f 100644 --- a/libntp/gpstolfp.c +++ b/libntp/gpstolfp.c @@ -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 */ diff --git a/libntp/msyslog.c b/libntp/msyslog.c index d5a25fc330..dfb1627132 100644 --- a/libntp/msyslog.c +++ b/libntp/msyslog.c @@ -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 */