projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ps,top: add an option to show threads. +260 bytes of code
[oweals/busybox.git]
/
console-tools
/
chvt.c
diff --git
a/console-tools/chvt.c
b/console-tools/chvt.c
index ea3e7c04857259b06aea2714cb697b6a06c32d4b..302ffb4f914fa300f8f1f2d0ec9c2bcee9e9219c 100644
(file)
--- a/
console-tools/chvt.c
+++ b/
console-tools/chvt.c
@@
-19,7
+19,6
@@
int chvt_main(int argc, char **argv)
}
num = xatou_range(argv[1], 1, 63);
- /* double cast suppresses "cast to ptr from int of different size" */
- console_make_active(get_console_fd(), num);
+ console_make_active(get_console_fd_or_die(), num);
return EXIT_SUCCESS;
}