From 0961d301dd74a133a16425b10be02787a499e453 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 19 May 2009 12:42:31 +0000 Subject: io-threads: Use boolean enums instead of integer 1 Signed-off-by: Anand V. Avati --- xlators/performance/io-threads/src/io-threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/performance/io-threads/src') diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index a04f664e816..3136c9c1aa1 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -2342,7 +2342,7 @@ iot_ordered_exit (int cond_waitres, iot_worker_t *worker) gf_boolean_t allow_exit = _gf_false; if (worker->state == IOT_STATE_EXIT_REQUEST) { - allow_exit = 1; + allow_exit = _gf_true; } else if (cond_waitres == ETIMEDOUT) { allow_exit = iot_can_ordered_exit (worker); } @@ -2457,7 +2457,7 @@ iot_unordered_exit (int cond_waitres, iot_worker_t *worker) gf_boolean_t allow_exit = _gf_false; if (worker->state == IOT_STATE_EXIT_REQUEST) { - allow_exit = 1; + allow_exit = _gf_true; } else if (cond_waitres == ETIMEDOUT) { allow_exit = iot_can_unordered_exit (worker); } -- cgit