diff --git a/client/main.c b/client/main.c
index 4360930..bb67f3d 100644
--- a/client/main.c
+++ b/client/main.c
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;
* 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;
}