Use xread_char to save a few bytes, fix indenting of comments
[oweals/busybox.git] / console-tools / setkeycodes.c
index 0be4724ca6e3b17d7f8c53843ad29cf914b19a06..85612c8b18f0c8e0f47857297627831b4c044169 100644 (file)
  *
  */
 
-#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#include "busybox.h"
 
 
 /* From <linux/kd.h> */
@@ -46,7 +46,7 @@ setkeycodes_main(int argc, char** argv)
       show_usage();
        }
         
-       fd = get_console_fd("/dev/console");
+       fd = get_console_fd();
 
     while (argc > 2) {
        a.keycode = atoi(argv[2]);