mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
unsigned constants
This commit is contained in:
parent
22be030b50
commit
4e056cee66
@ -600,13 +600,13 @@ adj_trigger_cnt(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (inc) {
|
if (inc) {
|
||||||
if (++*cnt == 1) {
|
if (++*cnt == 1U) {
|
||||||
*have |= DNS_RPZ_ZBIT(rpz_num);
|
*have |= DNS_RPZ_ZBIT(rpz_num);
|
||||||
fix_qname_skip_recurse(rpzs);
|
fix_qname_skip_recurse(rpzs);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
REQUIRE(*cnt != 0);
|
REQUIRE(*cnt != 0U);
|
||||||
if (--*cnt == 0) {
|
if (--*cnt == 0U) {
|
||||||
*have &= ~DNS_RPZ_ZBIT(rpz_num);
|
*have &= ~DNS_RPZ_ZBIT(rpz_num);
|
||||||
fix_qname_skip_recurse(rpzs);
|
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));
|
memset(&rpzs->total_triggers, 0, sizeof(rpzs->total_triggers));
|
||||||
|
|
||||||
#define SET_TRIG(n, zbit, type) \
|
#define SET_TRIG(n, zbit, type) \
|
||||||
if (rpzs->triggers[n].type == 0) { \
|
if (rpzs->triggers[n].type == 0U) { \
|
||||||
rpzs->have.type &= ~zbit; \
|
rpzs->have.type &= ~zbit; \
|
||||||
} else { \
|
} else { \
|
||||||
rpzs->total_triggers.type += rpzs->triggers[n].type; \
|
rpzs->total_triggers.type += rpzs->triggers[n].type; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user