diff options
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/chvt.c | 2 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 2 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index c76e9c780..8136f1c15 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -24,7 +24,7 @@ int chvt_main(int argc, char **argv) | |||
24 | 24 | ||
25 | if ((argc != 2) || (**(argv + 1) == '-')) | 25 | if ((argc != 2) || (**(argv + 1) == '-')) |
26 | show_usage(); | 26 | show_usage(); |
27 | fd = get_console_fd("/dev/console"); | 27 | fd = get_console_fd(); |
28 | num = atoi(argv[1]); | 28 | num = atoi(argv[1]); |
29 | if (ioctl(fd, VT_ACTIVATE, num)) | 29 | if (ioctl(fd, VT_ACTIVATE, num)) |
30 | perror_msg_and_die("VT_ACTIVATE"); | 30 | perror_msg_and_die("VT_ACTIVATE"); |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index 15cd0c9b9..b7dcc9e22 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -21,7 +21,7 @@ int deallocvt_main(int argc, char *argv[]) | |||
21 | if (argc > 2) | 21 | if (argc > 2) |
22 | show_usage(); | 22 | show_usage(); |
23 | 23 | ||
24 | fd = get_console_fd("/dev/console"); | 24 | fd = get_console_fd(); |
25 | 25 | ||
26 | if (argc == 1) { | 26 | if (argc == 1) { |
27 | /* deallocate all unused consoles */ | 27 | /* deallocate all unused consoles */ |
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index c3c7e09aa..85612c8b1 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c | |||
@@ -46,7 +46,7 @@ setkeycodes_main(int argc, char** argv) | |||
46 | show_usage(); | 46 | show_usage(); |
47 | } | 47 | } |
48 | 48 | ||
49 | fd = get_console_fd("/dev/console"); | 49 | fd = get_console_fd(); |
50 | 50 | ||
51 | while (argc > 2) { | 51 | while (argc > 2) { |
52 | a.keycode = atoi(argv[2]); | 52 | a.keycode = atoi(argv[2]); |