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

This commit is contained in:
Ondřej Surý
2018-10-11 11:57:57 +02:00
parent fbd2e47f51
commit b2b43fd235
47 changed files with 210 additions and 177 deletions

View File

@@ -985,7 +985,7 @@ pg_event2(isc_task_t *task, isc_event_t *event) {
}
if (sender_match && type_match && tag_match) {
if (event->ev_attributes & ISC_EVENTATTR_NOPURGE) {
if ((event->ev_attributes & ISC_EVENTATTR_NOPURGE) != 0) {
printf("event %p,%d,%p matched but was not purgeable\n",
event->ev_sender, (int)event->ev_type,
event->ev_tag);
@@ -1439,4 +1439,3 @@ ATF_TP_ADD_TCS(tp) {
ATF_TP_ADD_TC(tp, purgeevent_notpurge);
return (atf_no_error());
}