aboutsummaryrefslogtreecommitdiff
path: root/libbb/get_console.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /libbb/get_console.c
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
downloadbusybox-w32-06af2165288cd6516b89001ec9e24992619230e0.tar.gz
busybox-w32-06af2165288cd6516b89001ec9e24992619230e0.tar.bz2
busybox-w32-06af2165288cd6516b89001ec9e24992619230e0.zip
suppress warnings about easch <applet>_main() having
no preceding prototype
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 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)