summaryrefslogtreecommitdiff
path: root/libbb/get_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/get_console.c')
-rw-r--r--libbb/get_console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/get_console.c b/libbb/get_console.c
index 52ae3d2..62a1739 100644
--- a/libbb/get_console.c
+++ b/libbb/get_console.c
@@ -59,8 +59,8 @@ int get_console_fd(void)
char arg;
fd4name = open_a_console(choise_console_names[fd]);
- chk_std:
- choise_fd = fd4name >= 0 ? fd4name : fd;
+ chk_std:
+ choise_fd = (fd4name >= 0 ? fd4name : fd);
arg = 0;
if (ioctl(choise_fd, KDGKBTYPE, &arg) == 0)