]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Remove uneeded veriable
authorjNullj <15849761+jNullj@users.noreply.github.com>
Wed, 8 May 2024 19:30:04 +0000 (22:30 +0300)
committerjNullj <15849761+jNullj@users.noreply.github.com>
Wed, 8 May 2024 19:30:04 +0000 (22:30 +0300)
term-utils/scriptreplay.c

index fd13a723c19db1fa6f0d7aeb09057f9bff302df7..5ac3fa821962c31bfaaa4dad61c96a62d11d9132 100644 (file)
@@ -159,7 +159,6 @@ main(int argc, char *argv[])
        int saved_flag;
        struct termios saved;
 
-       wint_t c;
        struct replay_setup *setup = NULL;
        struct replay_step *step = NULL;
        char streams[6] = {0};          /* IOSI - in, out, signal,info */
@@ -323,8 +322,7 @@ main(int argc, char *argv[])
        isterm = setterm(&saved, &saved_flag);
 
        do {
-               c = fgetwc(stdin);
-               switch (c) {
+               switch (fgetwc(stdin)) {
                        case ' ':
                                replay_toggle_pause(setup);
                                break;