From bd10c0f46e0b7eadfb8c6d5cd45581cec253d775 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 3 Jan 2014 22:24:25 +0000 Subject: [PATCH] gui: Make curses_active a bool. This variable is only used as a boolean. --- gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui.c b/gui.c index e41977ef..34b594f9 100644 --- a/gui.c +++ b/gui.c @@ -53,7 +53,7 @@ static struct ringbuffer *bot_win_rb; static unsigned scroll_position; -static int curses_active; +static bool curses_active; static pid_t cmd_pid; static int command_fds[2] = {-1, -1}; @@ -564,7 +564,7 @@ static void shutdown_curses(void) if (!curses_active) return; def_prog_mode(); - curses_active = 0; + curses_active = false; endwin(); } @@ -823,7 +823,7 @@ static void init_colors_or_die(void) /* (Re-)initialize the curses library. */ static void init_curses(void) { - curses_active = 1; + curses_active = true; if (top.win && refresh() == ERR) /* refresh is really needed */ msg_n_exit(EXIT_FAILURE, "refresh() failed\n"); if (LINES < theme.lines_min || COLS < theme.cols_min) -- 2.39.5