From: Nicolas François Date: Mon, 19 Aug 2013 21:31:59 +0000 (+0200) Subject: Reindent and document that caught is not set. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=921133ecdc259607c9868a5c951183c519171d0e;p=thirdparty%2Fshadow.git Reindent and document that caught is not set. --- diff --git a/src/su.c b/src/su.c index 122914bda..7db5a868b 100644 --- a/src/su.c +++ b/src/su.c @@ -515,12 +515,16 @@ static void handle_session (void) } } while (!stop); - if (have_tty == true) { - close (fd_pts); - /* Reset RAW mode */ - if (tcsetattr (STDIN_FILENO, TCSANOW, &termset_save) == -1) - fprintf (stderr, _("%s: Cannot reset termios attributes\n"), Prog); - } + if (have_tty == true) { + close (fd_pts); + /* Reset RAW mode */ + if (tcsetattr (STDIN_FILENO, TCSANOW, &termset_save) == -1) { + fprintf (stderr, + _("%s: Cannot reset termios attributes\n"), + Prog); + /* caught not set */ + } + } } if (0 != caught) {