diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-13 23:49:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-13 23:49:45 +0200 |
commit | c72b43c2f07e5fae288fff9e220b1f88e2889a72 (patch) | |
tree | 4577ff27d4aefdb610b3e26fbf13651f8a01c81d /runit | |
parent | 0dacb68e1a660b235f9098abd33577be2e147c67 (diff) | |
download | busybox-w32-c72b43c2f07e5fae288fff9e220b1f88e2889a72.tar.gz busybox-w32-c72b43c2f07e5fae288fff9e220b1f88e2889a72.tar.bz2 busybox-w32-c72b43c2f07e5fae288fff9e220b1f88e2889a72.zip |
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 b7a0a6e71..8b8a6d858 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -745,11 +745,6 @@ static NOINLINE unsigned logdir_open(struct logdir *ld, const char *fn) | |||
745 | ld->inst = new; | 745 | ld->inst = new; |
746 | break; | 746 | break; |
747 | case 's': { | 747 | case 's': { |
748 | static const struct suffix_mult km_suffixes[] = { | ||
749 | { "k", 1024 }, | ||
750 | { "m", 1024*1024 }, | ||
751 | { "", 0 } | ||
752 | }; | ||
753 | ld->sizemax = xatou_sfx(&s[1], km_suffixes); | 748 | ld->sizemax = xatou_sfx(&s[1], km_suffixes); |
754 | break; | 749 | break; |
755 | } | 750 | } |