mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Silence compiler warnings.
This commit is contained in:
@@ -881,15 +881,15 @@ int cache_recv_insert(time_t now, int fd)
|
|||||||
/* Sneak in possibly updated crypto HWM. */
|
/* Sneak in possibly updated crypto HWM. */
|
||||||
if (!read_write(fd, (unsigned char *)&m, sizeof(m), RW_READ))
|
if (!read_write(fd, (unsigned char *)&m, sizeof(m), RW_READ))
|
||||||
return 0;
|
return 0;
|
||||||
if (m > daemon->metrics[METRIC_CRYPTO_HWM])
|
if ((unsigned int)m > daemon->metrics[METRIC_CRYPTO_HWM])
|
||||||
daemon->metrics[METRIC_CRYPTO_HWM] = m;
|
daemon->metrics[METRIC_CRYPTO_HWM] = m;
|
||||||
if (!read_write(fd, (unsigned char *)&m, sizeof(m), RW_READ))
|
if (!read_write(fd, (unsigned char *)&m, sizeof(m), RW_READ))
|
||||||
return 0;
|
return 0;
|
||||||
if (m > daemon->metrics[METRIC_SIG_FAIL_HWM])
|
if ((unsigned int)m > daemon->metrics[METRIC_SIG_FAIL_HWM])
|
||||||
daemon->metrics[METRIC_SIG_FAIL_HWM] = m;
|
daemon->metrics[METRIC_SIG_FAIL_HWM] = m;
|
||||||
if (!read_write(fd, (unsigned char *)&m, sizeof(m), RW_READ))
|
if (!read_write(fd, (unsigned char *)&m, sizeof(m), RW_READ))
|
||||||
return 0;
|
return 0;
|
||||||
if (m > daemon->metrics[METRIC_WORK_HWM])
|
if ((unsigned int)m > daemon->metrics[METRIC_WORK_HWM])
|
||||||
daemon->metrics[METRIC_WORK_HWM] = m;
|
daemon->metrics[METRIC_WORK_HWM] = m;
|
||||||
#endif
|
#endif
|
||||||
cache_end_insert();
|
cache_end_insert();
|
||||||
|
|||||||
Reference in New Issue
Block a user