diff options
Diffstat (limited to 'console-tools/setlogcons.c')
-rw-r--r-- | console-tools/setlogcons.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/console-tools/setlogcons.c b/console-tools/setlogcons.c index 0f6491c72..b312fa76e 100644 --- a/console-tools/setlogcons.c +++ b/console-tools/setlogcons.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include "libbb.h" | 12 | #include "libbb.h" |
13 | 13 | ||
14 | int setlogcons_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 14 | int setlogcons_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int setlogcons_main(int argc, char **argv) | 15 | int setlogcons_main(int argc ATTRIBUTE_UNUSED, char **argv) |
16 | { | 16 | { |
17 | struct { | 17 | struct { |
18 | char fn; | 18 | char fn; |
@@ -22,8 +22,8 @@ int setlogcons_main(int argc, char **argv) | |||
22 | arg.fn = 11; /* redirect kernel messages */ | 22 | arg.fn = 11; /* redirect kernel messages */ |
23 | arg.subarg = 0; /* to specified console (current as default) */ | 23 | arg.subarg = 0; /* to specified console (current as default) */ |
24 | 24 | ||
25 | if (argc == 2) | 25 | if (argv[1]) |
26 | arg.subarg = xatoul_range(argv[1], 0, 63); | 26 | arg.subarg = xatou_range(argv[1], 0, 63); |
27 | 27 | ||
28 | xioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg); | 28 | xioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg); |
29 | 29 | ||