ntp: fix clang warning
This commit is contained in:
parent
a2d2cad384
commit
25102489f5
1 changed files with 2 additions and 2 deletions
|
@ -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]",
|
||||||
|
|
Loading…
Reference in a new issue