summaryrefslogtreecommitdiff
path: root/util-linux/hexdump.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-27 15:06:25 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-27 15:06:25 +0000
commitf868963c672ffdfc4bd37670b8d74342577264b1 (patch)
tree4966afe1bbfaa0aa8ea313354e8be875307e027c /util-linux/hexdump.c
parent75878706174290fbf5faac0215b3b9ae78fa9d6f (diff)
downloadbusybox-w32-f868963c672ffdfc4bd37670b8d74342577264b1.tar.gz
busybox-w32-f868963c672ffdfc4bd37670b8d74342577264b1.tar.bz2
busybox-w32-f868963c672ffdfc4bd37670b8d74342577264b1.zip
multiplier suffixes are short, store them directly in struct suffix_mult
function old new delta xstrtoul_range_sfx 226 217 -9 xstrtoull_range_sfx 291 280 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-20) Total: -20 bytes text data bss dec hex filename 669128 2668 13616 685412 a7564 busybox_old 669108 2668 13616 685392 a7550 busybox_unstripped
Diffstat (limited to '')
-rw-r--r--util-linux/hexdump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 36ed1e97c..213f6071b 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -48,10 +48,10 @@ static const char add_first[] = "\"%07.7_Ax\n\"";
48static const char hexdump_opts[] = "bcdoxCe:f:n:s:v"; 48static const char hexdump_opts[] = "bcdoxCe:f:n:s:v";
49 49
50static const struct suffix_mult suffixes[] = { 50static const struct suffix_mult suffixes[] = {
51 { "b", 512 }, 51 { "b", 512 },
52 { "k", 1024 }, 52 { "k", 1024 },
53 { "m", 1024*1024 }, 53 { "m", 1024*1024 },
54 { NULL, 0 } 54 { }
55}; 55};
56 56
57int hexdump_main(int argc, char **argv); 57int hexdump_main(int argc, char **argv);