From: Andre Noll Date: Fri, 3 Jan 2014 22:24:25 +0000 (+0000) Subject: gui: Make curses_active a bool. X-Git-Tag: v0.5.3~12^2~43 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=bd10c0f46e0b7eadfb8c6d5cd45581cec253d775;hp=4b22b42cd97e269118e6d4f6e0f4442f098a843f gui: Make curses_active a bool. This variable is only used as a boolean. --- 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)