]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_6] silence warning
authorEvan Hunt <each@isc.org>
Wed, 10 Jul 2013 16:16:26 +0000 (09:16 -0700)
committerEvan Hunt <each@isc.org>
Wed, 10 Jul 2013 16:16:26 +0000 (09:16 -0700)
lib/isc/safe.c

index 3f005d3dc9d5fa37c72e15585314159ff7c28c81..fd27687188722c1ab6da79089143228d58b78239 100644 (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));
 }