From c72b43c2f07e5fae288fff9e220b1f88e2889a72 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 13 Jul 2013 23:49:45 +0200 Subject: 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 --- coreutils/tail.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'coreutils/tail.c') 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 @@ */ //kbuild:lib-$(CONFIG_TAIL) += tail.o -//kbuild:lib-$(CONFIG_TAIL) += head_tail.o //usage:#define tail_trivial_usage //usage: "[OPTIONS] [FILE]..." @@ -51,7 +50,6 @@ //usage: "nameserver 10.0.0.1\n" #include "libbb.h" -#include "head_tail.h" struct globals { bool from_top; @@ -89,7 +87,7 @@ static unsigned eat_num(const char *p) p++; G.from_top = 1; } - return xatou_sfx(p, head_tail_suffixes); + return xatou_sfx(p, bkm_suffixes); } int tail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -- cgit v1.2.3