From: Todd C. Miller Date: Mon, 17 Jul 2017 20:09:48 +0000 (-0600) Subject: remove unused variable X-Git-Tag: SUDO_1_8_21^2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58858513f046d1c496c54ac614464348199ef741;p=sudo remove unused variable --- diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index 953245e8f..a6477192b 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -717,14 +717,13 @@ resize_terminal(int rows, int cols) static void restore_terminal_size(void) { - int ch; debug_decl(restore_terminal, SUDO_DEBUG_UTIL) if (terminal_was_resized) { /* We are still in raw mode, hence the carriage return. */ printf(U_("Replay finished, press any key to restore the terminal.")); fflush(stdout); - ch = getchar(); + (void)getchar(); xterm_set_size(terminal_rows, terminal_cols); putchar('\r'); putchar('\n');