Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool

(cherry picked from commit b2b43fd235)
This commit is contained in:
Ondřej Surý
2018-11-08 14:37:14 +07:00
parent b222783ae9
commit fcd1569e2b
46 changed files with 212 additions and 174 deletions
-2
View File
@@ -61,8 +61,6 @@ typedef void (*isc_radix_processfunc_t)(isc_prefix_t *, void **);
#define isc_prefix_tochar(prefix) ((char *)&(prefix)->add.sin)
#define isc_prefix_touchar(prefix) ((u_char *)&(prefix)->add.sin)
#define BIT_TEST(f, b) ((f) & (b))
/*
* We need "first match" when we search the radix tree to preserve
* compatibility with the existing ACL implementation. Radix trees