]> granicus.if.org Git - sudo/commitdiff
remove unused variable
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 20:09:48 +0000 (14:09 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 20:09:48 +0000 (14:09 -0600)
plugins/sudoers/sudoreplay.c

index 953245e8f399d160b420a3086419a2d40e6bcea0..a6477192b319f5fccbedf7c8e02f96a9b2f4b465 100644 (file)
@@ -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');