diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-27 15:06:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-27 15:06:25 +0000 |
commit | f868963c672ffdfc4bd37670b8d74342577264b1 (patch) | |
tree | 4966afe1bbfaa0aa8ea313354e8be875307e027c /coreutils/od_bloaty.c | |
parent | 75878706174290fbf5faac0215b3b9ae78fa9d6f (diff) | |
download | busybox-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 'coreutils/od_bloaty.c')
-rw-r--r-- | coreutils/od_bloaty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 803407224..e30860544 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -981,7 +981,7 @@ parse_old_offset(const char *s, off_t *offset) | |||
981 | static const struct suffix_mult Bb[] = { | 981 | static const struct suffix_mult Bb[] = { |
982 | { "B", 1024 }, | 982 | { "B", 1024 }, |
983 | { "b", 512 }, | 983 | { "b", 512 }, |
984 | { NULL, 0 } | 984 | { } |
985 | }; | 985 | }; |
986 | char *p; | 986 | char *p; |
987 | int radix; | 987 | int radix; |
@@ -1204,7 +1204,7 @@ int od_main(int argc, char **argv) | |||
1204 | { "b", 512 }, | 1204 | { "b", 512 }, |
1205 | { "k", 1024 }, | 1205 | { "k", 1024 }, |
1206 | { "m", 1024*1024 }, | 1206 | { "m", 1024*1024 }, |
1207 | { NULL, 0 } | 1207 | { } |
1208 | }; | 1208 | }; |
1209 | unsigned opt; | 1209 | unsigned opt; |
1210 | int l_c_m; | 1210 | int l_c_m; |