mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
[master] silence warning
This commit is contained in:
@@ -31,12 +31,12 @@ isc_boolean_t
|
|||||||
isc_safe_memcmp(const void *s1, const void *s2, size_t n) {
|
isc_safe_memcmp(const void *s1, const void *s2, size_t n) {
|
||||||
isc_uint8_t acc = 0;
|
isc_uint8_t acc = 0;
|
||||||
|
|
||||||
if (n != 0) {
|
if (n != 0U) {
|
||||||
const isc_uint8_t *p1 = s1, *p2 = s2;
|
const isc_uint8_t *p1 = s1, *p2 = s2;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
acc |= *p1++ ^ *p2++;
|
acc |= *p1++ ^ *p2++;
|
||||||
} while (--n != 0);
|
} while (--n != 0U);
|
||||||
}
|
}
|
||||||
return (ISC_TF(acc == 0));
|
return (ISC_TF(acc == 0));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user