]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
unsigned constants
authorMark Andrews <marka@isc.org>
Fri, 29 May 2015 01:26:13 +0000 (11:26 +1000)
committerMark Andrews <marka@isc.org>
Fri, 29 May 2015 01:26:13 +0000 (11:26 +1000)
lib/dns/rpz.c

index 8748f3de546b1d12e5a16ce5ddb88ccd5b5ab347..a49d362643ec612720fdb78acf5a5815e9093419 100644 (file)
@@ -600,13 +600,13 @@ adj_trigger_cnt(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
        }
 
        if (inc) {
-               if (++*cnt == 1) {
+               if (++*cnt == 1U) {
                        *have |= DNS_RPZ_ZBIT(rpz_num);
                        fix_qname_skip_recurse(rpzs);
                }
        } else {
-               REQUIRE(*cnt != 0);
-               if (--*cnt == 0) {
+               REQUIRE(*cnt != 0U);
+               if (--*cnt == 0U) {
                        *have &= ~DNS_RPZ_ZBIT(rpz_num);
                        fix_qname_skip_recurse(rpzs);
                }
@@ -1629,7 +1629,7 @@ fix_triggers(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num) {
        memset(&rpzs->total_triggers, 0, sizeof(rpzs->total_triggers));
 
 #define SET_TRIG(n, zbit, type)                                                \
-       if (rpzs->triggers[n].type == 0) {                              \
+       if (rpzs->triggers[n].type == 0U) {                             \
                rpzs->have.type &= ~zbit;                               \
        } else {                                                        \
                rpzs->total_triggers.type += rpzs->triggers[n].type;    \