From aa568da12fcb124d6447e8d0613267e1f786d9b8 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 13 Dec 2012 09:58:51 -0500 Subject: [PATCH] cleanup --- termite.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/termite.cc b/termite.cc index 9e2c66d..a8def78 100644 --- a/termite.cc +++ b/termite.cc @@ -1149,11 +1149,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info, static void exit_with_status(VteTerminal *vte) { int status = vte_terminal_get_child_exit_status(vte); gtk_main_quit(); - if (WIFEXITED(status)) { - exit(WEXITSTATUS(status)); - } else { - exit(EXIT_FAILURE); // child did not exit normally - } + exit(WIFEXITED(status) ? WEXITSTATUS(status) : EXIT_FAILURE); } int main(int argc, char **argv) {