From: Harlan Stenn Date: Thu, 19 Aug 1999 05:41:20 +0000 (-0000) Subject: ChangeLog, recvbuff.c, systime.c, ntp_control.c, ntp_intres.c: X-Git-Tag: NTP_4_0_97_A~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91a327d036db1dda8fa9a64efd5c579b8357645b;p=thirdparty%2Fntp.git ChangeLog, recvbuff.c, systime.c, ntp_control.c, ntp_intres.c: * ntpd/ntp_intres.c (request): Lint cleanup * ntpd/ntp_control.c (ctl_putclock): Ditto * libntp/recvbuff.c (getrecvbufs): Ditto (get_free_recv_buffer): Ditto * libntp/systime.c (adj_systime): Ditto bk: 37bb9900iFiYH1wAM8C5HfXrCgz9wA --- diff --git a/ChangeLog b/ChangeLog index c8f89da73..98a43279b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-08-19 Harlan Stenn + + * ntpd/ntp_intres.c (request): Lint cleanup + * ntpd/ntp_control.c (ctl_putclock): Ditto + * libntp/recvbuff.c (getrecvbufs): Ditto + (get_free_recv_buffer): Ditto + * libntp/systime.c (adj_systime): Ditto + 1999-08-18 Harlan Stenn * configure.in: 4.0.97 diff --git a/libntp/recvbuff.c b/libntp/recvbuff.c index f888e3bb2..74daa5024 100644 --- a/libntp/recvbuff.c +++ b/libntp/recvbuff.c @@ -171,7 +171,7 @@ getrecvbufs(void) if (free_recvbufs <= RECV_LOWAT) { if (total_recvbufs >= RECV_TOOMANY) - msyslog(LOG_ERR, "too many recvbufs allocated (%d)", + msyslog(LOG_ERR, "too many recvbufs allocated (%ld)", total_recvbufs); else { @@ -240,7 +240,7 @@ get_free_recv_buffer(void) if (free_recvbufs <= RECV_LOWAT) { if (total_recvbufs >= RECV_TOOMANY) { - msyslog(LOG_ERR, "too many recvbufs allocated (%d)", + msyslog(LOG_ERR, "too many recvbufs allocated (%ld)", total_recvbufs); } else diff --git a/libntp/systime.c b/libntp/systime.c index 5e9d39fed..ab719da44 100644 --- a/libntp/systime.c +++ b/libntp/systime.c @@ -220,7 +220,7 @@ adj_systime( } #ifdef DEBUG if (debug > 6) - printf("adj_systime: adj %.9lf -> remaining residual %.9lf\n", now, sys_residual); + printf("adj_systime: adj %.9f -> remaining residual %.9f\n", now, sys_residual); #endif return 1; } diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c index 437987778..5fc735df5 100644 --- a/ntpd/ntp_control.c +++ b/ntpd/ntp_control.c @@ -1464,7 +1464,7 @@ ctl_putclock( break; case CC_TIMECODE: ctl_putstr(clock_var[CC_TIMECODE].text, clock_stat->p_lastcode, - (int)clock_stat->lencode); + (unsigned)clock_stat->lencode); break; case CC_POLL: ctl_putuint(clock_var[CC_POLL].text, clock_stat->polls); diff --git a/ntpd/ntp_intres.c b/ntpd/ntp_intres.c index 3b39e1671..4bc1c9301 100644 --- a/ntpd/ntp_intres.c +++ b/ntpd/ntp_intres.c @@ -547,7 +547,7 @@ request( * Done. Send it. */ #ifndef SYS_WINNT - n = send(sockfd, (char *)&reqpkt, (int)(REQ_LEN_NOMAC + n), 0); + n = send(sockfd, (char *)&reqpkt, (unsigned)(REQ_LEN_NOMAC + n), 0); if (n < 0) { msyslog(LOG_ERR, "send to NTP server failed: %m"); return 0; /* maybe should exit */