diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 08:18:50 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 08:18:50 +0000 |
commit | ae4342ca3e30f7b11732ecda3ad15821e81bc314 (patch) | |
tree | 1878104940eac4649bc8add4d0b2893ab1cb0a94 /console-tools/setlogcons.c | |
parent | ee56e013cfb6304f66129afee7978b0864699419 (diff) | |
download | busybox-w32-ae4342ca3e30f7b11732ecda3ad15821e81bc314.tar.gz busybox-w32-ae4342ca3e30f7b11732ecda3ad15821e81bc314.tar.bz2 busybox-w32-ae4342ca3e30f7b11732ecda3ad15821e81bc314.zip |
- Rename getpty() to xgetpty() and adjust callers.
- Rewrite kbd_mode and setconsole
- Introduce and use console_make_active() and xopen_xwrite_close()
- honour buffer-reservation method as set by the user (dumpkmap, loadkmap)
- shrink rtcwake and some console-tools
Saves about 270 Bytes
Diffstat (limited to 'console-tools/setlogcons.c')
-rw-r--r-- | console-tools/setlogcons.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/console-tools/setlogcons.c b/console-tools/setlogcons.c index b312fa76e..aa8e0806f 100644 --- a/console-tools/setlogcons.c +++ b/console-tools/setlogcons.c | |||
@@ -17,15 +17,14 @@ int setlogcons_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
17 | struct { | 17 | struct { |
18 | char fn; | 18 | char fn; |
19 | char subarg; | 19 | char subarg; |
20 | } arg; | 20 | } arg = { 11, /* redirect kernel messages */ |
21 | 21 | 0 /* to specified console (current as default) */ | |
22 | arg.fn = 11; /* redirect kernel messages */ | 22 | }; |
23 | arg.subarg = 0; /* to specified console (current as default) */ | ||
24 | 23 | ||
25 | if (argv[1]) | 24 | if (argv[1]) |
26 | arg.subarg = xatou_range(argv[1], 0, 63); | 25 | arg.subarg = xatou_range(argv[1], 0, 63); |
27 | 26 | ||
28 | xioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg); | 27 | xioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg); |
29 | 28 | ||
30 | return 0; | 29 | return EXIT_SUCCESS; |
31 | } | 30 | } |