Replace custom isc_boolean_t with C standard bool type

This commit is contained in:
Ondřej Surý
2018-04-17 08:29:14 -07:00
parent cb6a185c69
commit 994e656977
546 changed files with 10785 additions and 10367 deletions

View File

@@ -189,7 +189,7 @@ ATF_TC_BODY(ticker, tc) {
seconds = 0;
nanoseconds = 500000000;
result = isc_test_begin(NULL, ISC_TRUE, 2);
result = isc_test_begin(NULL, true, 2);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
isc_interval_set(&interval, seconds, nanoseconds);
@@ -215,7 +215,7 @@ ATF_TC_BODY(once_life, tc) {
seconds = 1;
nanoseconds = 100000000;
result = isc_test_begin(NULL, ISC_TRUE, 2);
result = isc_test_begin(NULL, true, 2);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
isc_interval_set(&interval, seconds, nanoseconds);
@@ -283,7 +283,7 @@ ATF_TC_BODY(once_idle, tc) {
seconds = 1;
nanoseconds = 200000000;
result = isc_test_begin(NULL, ISC_TRUE, 2);
result = isc_test_begin(NULL, true, 2);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
isc_interval_set(&interval, seconds + 1, nanoseconds);
@@ -344,7 +344,7 @@ test_reset(isc_task_t *task, isc_event_t *event) {
isc_interval_set(&interval, 0, 0);
result = isc_timer_reset(timer, isc_timertype_once,
&expires, &interval,
ISC_FALSE);
false);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
}
} else {
@@ -368,7 +368,7 @@ ATF_TC_BODY(reset, tc) {
UNUSED(tc);
result = isc_test_begin(NULL, ISC_TRUE, 2);
result = isc_test_begin(NULL, true, 2);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
nevents = 3;
@@ -429,7 +429,7 @@ tick_event(isc_task_t *task, isc_event_t *event) {
isc_time_settoepoch(&expires);
isc_interval_set(&interval, seconds, 0);
result = isc_timer_reset(tickertimer, isc_timertype_ticker,
&expires, &interval, ISC_TRUE);
&expires, &interval, true);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
isc_task_shutdown(task);
@@ -492,7 +492,7 @@ ATF_TC_BODY(purge, tc) {
UNUSED(tc);
result = isc_test_begin(NULL, ISC_TRUE, 2);
result = isc_test_begin(NULL, true, 2);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
startflag = 0;