diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/get_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/get_console.c b/libbb/get_console.c index 52ae3d215..62a17399d 100644 --- a/libbb/get_console.c +++ b/libbb/get_console.c | |||
@@ -59,8 +59,8 @@ int get_console_fd(void) | |||
59 | char arg; | 59 | char arg; |
60 | 60 | ||
61 | fd4name = open_a_console(choise_console_names[fd]); | 61 | fd4name = open_a_console(choise_console_names[fd]); |
62 | chk_std: | 62 | chk_std: |
63 | choise_fd = fd4name >= 0 ? fd4name : fd; | 63 | choise_fd = (fd4name >= 0 ? fd4name : fd); |
64 | 64 | ||
65 | arg = 0; | 65 | arg = 0; |
66 | if (ioctl(choise_fd, KDGKBTYPE, &arg) == 0) | 66 | if (ioctl(choise_fd, KDGKBTYPE, &arg) == 0) |