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 /runit | |
parent | 75878706174290fbf5faac0215b3b9ae78fa9d6f (diff) |
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 'runit')
-rw-r--r-- | runit/svlogd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/runit/svlogd.c b/runit/svlogd.c index 08e0b6446..b271b743f 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c @@ -488,9 +488,9 @@ static unsigned logdir_open(struct logdir *ld, const char *fn) break; case 's': { static const struct suffix_mult km_suffixes[] = { - { "k", 1024 }, - { "m", 1024*1024 }, - { NULL, 0 } + { "k", 1024 }, + { "m", 1024*1024 }, + { } }; ld->sizemax = xatou_sfx(&s[1], km_suffixes); break; @@ -503,10 +503,10 @@ static unsigned logdir_open(struct logdir *ld, const char *fn) break; case 't': { static const struct suffix_mult mh_suffixes[] = { - { "m", 60 }, - { "h", 60*60 }, - /*{ "d", 24*60*60 },*/ - { NULL, 0 } + { "m", 60 }, + { "h", 60*60 }, + /*{ "d", 24*60*60 },*/ + { } }; ld->tmax = xatou_sfx(&s[1], mh_suffixes); if (ld->tmax) { |