ntp_request.c (ntp-4.2.8p14) | : | ntp_request.c (ntp-4.2.8p15) | ||
---|---|---|---|---|
skipping to change at line 1172 | skipping to change at line 1172 | |||
ms->timereset = htonl((u_int32)(current_time - peer_timereset)); | ms->timereset = htonl((u_int32)(current_time - peer_timereset)); | |||
ms->totalpeermem = htons((u_short)total_peer_structs); | ms->totalpeermem = htons((u_short)total_peer_structs); | |||
ms->freepeermem = htons((u_short)peer_free_count); | ms->freepeermem = htons((u_short)peer_free_count); | |||
ms->findpeer_calls = htonl((u_int32)findpeer_calls); | ms->findpeer_calls = htonl((u_int32)findpeer_calls); | |||
ms->allocations = htonl((u_int32)peer_allocations); | ms->allocations = htonl((u_int32)peer_allocations); | |||
ms->demobilizations = htonl((u_int32)peer_demobilizations); | ms->demobilizations = htonl((u_int32)peer_demobilizations); | |||
for (i = 0; i < NTP_HASH_SIZE; i++) | for (i = 0; i < NTP_HASH_SIZE; i++) | |||
ms->hashcount[i] = (u_char) | ms->hashcount[i] = (u_char) | |||
max((u_int)peer_hash_count[i], UCHAR_MAX); | min((u_int)peer_hash_count[i], UCHAR_MAX); | |||
(void) more_pkt(); | (void) more_pkt(); | |||
flush_pkt(); | flush_pkt(); | |||
} | } | |||
/* | /* | |||
* io_stats - return io statistics | * io_stats - return io statistics | |||
*/ | */ | |||
static void | static void | |||
io_stats( | io_stats( | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |