accidentally applied wrong (old) patch, fixing up...
[oweals/busybox.git] / console-tools / dumpkmap.c
index 62313e77f297eefd9d09efce152ed71bd5355680..7c6633ae8435aa8148d3c184553ca00827690437 100644 (file)
@@ -8,13 +8,6 @@
  *
  */
 
-#include <errno.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/ioctl.h>
 #include "busybox.h"
 
 /* From <linux/kd.h> */
@@ -38,7 +31,7 @@ int dumpkmap_main(int argc, char **argv)
        if (argc >= 2 && *argv[1] == '-')
                bb_show_usage();
 
-       fd = bb_xopen(CURRENT_VC, O_RDWR);
+       fd = xopen(CURRENT_VC, O_RDWR);
 
        write(1, magic, 7);