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 /coreutils/tail.c | |
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 'coreutils/tail.c')
-rw-r--r-- | coreutils/tail.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index c9f9d00f6..07c71ca4b 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -25,7 +25,6 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | //kbuild:lib-$(CONFIG_TAIL) += tail.o | 27 | //kbuild:lib-$(CONFIG_TAIL) += tail.o |
28 | //kbuild:lib-$(CONFIG_TAIL) += head_tail.o | ||
29 | 28 | ||
30 | //usage:#define tail_trivial_usage | 29 | //usage:#define tail_trivial_usage |
31 | //usage: "[OPTIONS] [FILE]..." | 30 | //usage: "[OPTIONS] [FILE]..." |
@@ -51,7 +50,6 @@ | |||
51 | //usage: "nameserver 10.0.0.1\n" | 50 | //usage: "nameserver 10.0.0.1\n" |
52 | 51 | ||
53 | #include "libbb.h" | 52 | #include "libbb.h" |
54 | #include "head_tail.h" | ||
55 | 53 | ||
56 | struct globals { | 54 | struct globals { |
57 | bool from_top; | 55 | bool from_top; |
@@ -89,7 +87,7 @@ static unsigned eat_num(const char *p) | |||
89 | p++; | 87 | p++; |
90 | G.from_top = 1; | 88 | G.from_top = 1; |
91 | } | 89 | } |
92 | return xatou_sfx(p, head_tail_suffixes); | 90 | return xatou_sfx(p, bkm_suffixes); |
93 | } | 91 | } |
94 | 92 | ||
95 | int tail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 93 | int tail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |