2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

[master] silence warning

This commit is contained in:
Evan Hunt
2013-07-10 09:15:51 -07:00
parent a96e5ffbe0
commit f4e309b177

View File

@@ -31,12 +31,12 @@ isc_boolean_t
isc_safe_memcmp(const void *s1, const void *s2, size_t n) {
isc_uint8_t acc = 0;
if (n != 0) {
if (n != 0U) {
const isc_uint8_t *p1 = s1, *p2 = s2;
do {
acc |= *p1++ ^ *p2++;
} while (--n != 0);
} while (--n != 0U);
}
return (ISC_TF(acc == 0));
}