diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-12 00:32:05 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-12 00:32:05 +0000 |
commit | 51742f4bb0c57a4d5063ece9437a2f34a42e52c8 (patch) | |
tree | 7a912fc65ff43bdb09078d75bfc02ad8f5380b47 /libbb/get_console.c | |
parent | 50f7f446ecaadef6895a4ee601567e0b68330637 (diff) | |
download | busybox-w32-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.tar.gz busybox-w32-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.tar.bz2 busybox-w32-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.zip |
style fixes. No code changes
Diffstat (limited to 'libbb/get_console.c')
-rw-r--r-- | libbb/get_console.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/get_console.c b/libbb/get_console.c index 42ee137b9..9797ad6f0 100644 --- a/libbb/get_console.c +++ b/libbb/get_console.c | |||
@@ -50,17 +50,17 @@ int get_console_fd(void) | |||
50 | 50 | ||
51 | for (fd = 2; fd >= 0; fd--) { | 51 | for (fd = 2; fd >= 0; fd--) { |
52 | int fd4name; | 52 | int fd4name; |
53 | int choise_fd; | 53 | int choice_fd; |
54 | char arg; | 54 | char arg; |
55 | 55 | ||
56 | fd4name = open_a_console(console_names[fd]); | 56 | fd4name = open_a_console(console_names[fd]); |
57 | chk_std: | 57 | chk_std: |
58 | choise_fd = (fd4name >= 0 ? fd4name : fd); | 58 | choice_fd = (fd4name >= 0 ? fd4name : fd); |
59 | 59 | ||
60 | arg = 0; | 60 | arg = 0; |
61 | if (ioctl(choise_fd, KDGKBTYPE, &arg) == 0) | 61 | if (ioctl(choice_fd, KDGKBTYPE, &arg) == 0) |
62 | return choise_fd; | 62 | return choice_fd; |
63 | if(fd4name >= 0) { | 63 | if (fd4name >= 0) { |
64 | close(fd4name); | 64 | close(fd4name); |
65 | fd4name = -1; | 65 | fd4name = -1; |
66 | goto chk_std; | 66 | goto chk_std; |