Try to make a "type-punned pointer" warning go away for somebody on the
[oweals/busybox.git] / util-linux / hexdump.c
index 2181b846d9c22df26f5e3e19ca31fb8ed6010134..136243122a9ec024cb07e29590e470fcd480f8c6 100644 (file)
@@ -1,3 +1,4 @@
+/* vi: set sw=4 ts=4: */
 /*
  * hexdump implementation for busybox
  * Based on code from util-linux v 2.11l
@@ -10,7 +11,6 @@
 
 #include "busybox.h"
 #include <getopt.h>
-#include <string.h>
 #include "dump.h"
 
 static void bb_dump_addfile(char *name)
@@ -19,7 +19,7 @@ static void bb_dump_addfile(char *name)
        FILE *fp;
        char *buf;
 
-       fp = bb_xfopen(name, "r");
+       fp = xfopen(name, "r");
 
        while ((buf = bb_get_chomped_line_from_file(fp)) != NULL) {
                p = skip_whitespace(buf);