+1999-08-19 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * 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 <stenn@whimsy.udel.edu>
* configure.in: 4.0.97
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
{
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
}
#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;
}
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);
* 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 */