summaryrefslogtreecommitdiff
path: root/libbb/get_console.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-12 00:32:05 +0000
committerDenis Vlasenko2007-04-12 00:32:05 +0000
commit51742f4bb0c57a4d5063ece9437a2f34a42e52c8 (patch)
tree7a912fc65ff43bdb09078d75bfc02ad8f5380b47 /libbb/get_console.c
parent50f7f446ecaadef6895a4ee601567e0b68330637 (diff)
downloadbusybox-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.zip
busybox-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.tar.gz
style fixes. No code changes
Diffstat (limited to 'libbb/get_console.c')
-rw-r--r--libbb/get_console.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/get_console.c b/libbb/get_console.c
index 42ee137..9797ad6 100644
--- a/libbb/get_console.c
+++ b/libbb/get_console.c
@@ -50,17 +50,17 @@ int get_console_fd(void)
for (fd = 2; fd >= 0; fd--) {
int fd4name;
- int choise_fd;
+ int choice_fd;
char arg;
fd4name = open_a_console(console_names[fd]);
chk_std:
- choise_fd = (fd4name >= 0 ? fd4name : fd);
+ choice_fd = (fd4name >= 0 ? fd4name : fd);
arg = 0;
- if (ioctl(choise_fd, KDGKBTYPE, &arg) == 0)
- return choise_fd;
- if(fd4name >= 0) {
+ if (ioctl(choice_fd, KDGKBTYPE, &arg) == 0)
+ return choice_fd;
+ if (fd4name >= 0) {
close(fd4name);
fd4name = -1;
goto chk_std;