From 83f34df7f8c95afb900494611edecfdf78858cf9 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 2 Apr 2015 19:25:03 -0700 Subject: [PATCH] shared: Use bool for __terminated variable --- src/shared/tester.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/tester.c b/src/shared/tester.c index 3c3089f3b..30857e054 100644 --- a/src/shared/tester.c +++ b/src/shared/tester.c @@ -692,7 +692,7 @@ void tester_wait(unsigned int seconds, tester_wait_func_t func, static gboolean signal_handler(GIOChannel *channel, GIOCondition condition, gpointer user_data) { - static unsigned int __terminated = 0; + static bool terminated = false; struct signalfd_siginfo si; ssize_t result; int fd; @@ -711,10 +711,10 @@ static gboolean signal_handler(GIOChannel *channel, GIOCondition condition, switch (si.ssi_signo) { case SIGINT: case SIGTERM: - if (__terminated == 0) + if (!terminated) g_main_loop_quit(main_loop); - __terminated = 1; + terminated = true; break; } -- 2.47.3