diff options
author | Denys Vlasenko | 2013-07-13 23:49:45 +0200 |
---|---|---|
committer | Denys Vlasenko | 2013-07-13 23:49:45 +0200 |
commit | c72b43c2f07e5fae288fff9e220b1f88e2889a72 (patch) | |
tree | 4577ff27d4aefdb610b3e26fbf13651f8a01c81d /runit | |
parent | 0dacb68e1a660b235f9098abd33577be2e147c67 (diff) | |
download | busybox-c72b43c2f07e5fae288fff9e220b1f88e2889a72.zip busybox-c72b43c2f07e5fae288fff9e220b1f88e2889a72.tar.gz |
Commonalize typical [b,]k,m suffix struct
function old new delta
bkm_suffixes - 32 +32
static.km_suffixes 24 - -24
suffixes 32 - -32
static.bkm 32 - -32
head_tail_suffixes 32 - -32
------------------------------------------------------------------------------
(add/remove: 2/6 grow/shrink: 0/0 up/down: 72/-160) Total: -88 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r-- | runit/svlogd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/runit/svlogd.c b/runit/svlogd.c index b7a0a6e..8b8a6d8 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c @@ -745,11 +745,6 @@ static NOINLINE unsigned logdir_open(struct logdir *ld, const char *fn) ld->inst = new; break; case 's': { - static const struct suffix_mult km_suffixes[] = { - { "k", 1024 }, - { "m", 1024*1024 }, - { "", 0 } - }; ld->sizemax = xatou_sfx(&s[1], km_suffixes); break; } |