mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:45:07 -05:00
ntp: fix clang warning
This commit is contained in:
@@ -1521,8 +1521,8 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr,
|
|||||||
inst->valid_rx = 1;
|
inst->valid_rx = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sample_rx_tss < 0 || sample_rx_tss >= sizeof (tss_chars) ||
|
if ((int)sample_rx_tss < 0 || sample_rx_tss >= sizeof (tss_chars) ||
|
||||||
inst->local_tx.source < 0 || inst->local_tx.source >= sizeof (tss_chars))
|
(int)inst->local_tx.source < 0 || inst->local_tx.source >= sizeof (tss_chars))
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|
||||||
DEBUG_LOG(LOGF_NtpCore, "NTP packet lvm=%o stratum=%d poll=%d prec=%d root_delay=%f root_disp=%f refid=%"PRIx32" [%s]",
|
DEBUG_LOG(LOGF_NtpCore, "NTP packet lvm=%o stratum=%d poll=%d prec=%d root_delay=%f root_disp=%f refid=%"PRIx32" [%s]",
|
||||||
|
|||||||
Reference in New Issue
Block a user