projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use xread_char to save a few bytes, fix indenting of comments
[oweals/busybox.git]
/
console-tools
/
setkeycodes.c
diff --git
a/console-tools/setkeycodes.c
b/console-tools/setkeycodes.c
index 0be4724ca6e3b17d7f8c53843ad29cf914b19a06..85612c8b18f0c8e0f47857297627831b4c044169 100644
(file)
--- a/
console-tools/setkeycodes.c
+++ b/
console-tools/setkeycodes.c
@@
-22,11
+22,11
@@
*
*/
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/kd.h> */
/* From <linux/kd.h> */
@@
-46,7
+46,7
@@
setkeycodes_main(int argc, char** argv)
show_usage();
}
show_usage();
}
- fd = get_console_fd(
"/dev/console"
);
+ fd = get_console_fd();
while (argc > 2) {
a.keycode = atoi(argv[2]);
while (argc > 2) {
a.keycode = atoi(argv[2]);