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
This commit is contained in:
@@ -981,7 +981,7 @@ parse_old_offset(const char *s, off_t *offset)
|
||||
static const struct suffix_mult Bb[] = {
|
||||
{ "B", 1024 },
|
||||
{ "b", 512 },
|
||||
{ NULL, 0 }
|
||||
{ }
|
||||
};
|
||||
char *p;
|
||||
int radix;
|
||||
@@ -1204,7 +1204,7 @@ int od_main(int argc, char **argv)
|
||||
{ "b", 512 },
|
||||
{ "k", 1024 },
|
||||
{ "m", 1024*1024 },
|
||||
{ NULL, 0 }
|
||||
{ }
|
||||
};
|
||||
unsigned opt;
|
||||
int l_c_m;
|
||||
|
||||
Reference in New Issue
Block a user