From 9fb60a2933e1721931d69dd1ac43de0d60c3acf2 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 2 Apr 2015 19:27:13 -0700 Subject: [PATCH] client: Use bool for __terminated variable --- client/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/main.c b/client/main.c index 43609300a..bb67f3d5b 100644 --- a/client/main.c +++ b/client/main.c @@ -1658,7 +1658,7 @@ static guint setup_standard_input(void) 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; @@ -1691,13 +1691,13 @@ static gboolean signal_handler(GIOChannel *channel, GIOCondition condition, * exit and fall through. */ case SIGTERM: - if (__terminated == 0) { + if (!terminated) { rl_replace_line("", 0); rl_crlf(); g_main_loop_quit(main_loop); } - __terminated = 1; + terminated = true; break; } -- 2.47.3