aboutsummaryrefslogtreecommitdiff
path: root/util-linux/hexdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/hexdump.c')
-rw-r--r--util-linux/hexdump.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index cddd185e2..85a449038 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -9,10 +9,13 @@
9 * Licensed under GPLv2 or later, see file License in this tarball for details. 9 * Licensed under GPLv2 or later, see file License in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h"
13#include <getopt.h> 12#include <getopt.h>
13#include "busybox.h"
14#include "dump.h" 14#include "dump.h"
15 15
16/* This is a NOEXEC applet. Be very careful! */
17
18
16static void bb_dump_addfile(char *name) 19static void bb_dump_addfile(char *name)
17{ 20{
18 char *p; 21 char *p;
@@ -45,10 +48,10 @@ static const char add_first[] = "\"%07.7_Ax\n\"";
45static const char hexdump_opts[] = "bcdoxCe:f:n:s:v"; 48static const char hexdump_opts[] = "bcdoxCe:f:n:s:v";
46 49
47static const struct suffix_mult suffixes[] = { 50static const struct suffix_mult suffixes[] = {
48 {"b", 512 }, 51 { "b", 512 },
49 {"k", 1024 }, 52 { "k", 1024 },
50 {"m", 1024*1024 }, 53 { "m", 1024*1024 },
51 {NULL, 0 } 54 { NULL, 0 }
52}; 55};
53 56
54int hexdump_main(int argc, char **argv); 57int hexdump_main(int argc, char **argv);