diff options
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 | } |