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