Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user