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

@@ -78,7 +78,7 @@ event_done(isc_task_t *task, isc_event_t *event) {
} else {
recv_dscp = false;
}
recv_trunc = (dev->attributes & ISC_SOCKEVENTATTR_TRUNC);
recv_trunc = ((dev->attributes & ISC_SOCKEVENTATTR_TRUNC) != 0);
isc_event_free(&event);
}

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());
}