aboutsummaryrefslogtreecommitdiff
path: root/coreutils/head.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-07-13 23:49:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-07-13 23:49:45 +0200
commitc72b43c2f07e5fae288fff9e220b1f88e2889a72 (patch)
tree4577ff27d4aefdb610b3e26fbf13651f8a01c81d /coreutils/head.c
parent0dacb68e1a660b235f9098abd33577be2e147c67 (diff)
downloadbusybox-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/head.c')
-rw-r--r--coreutils/head.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index 291e1ce37..9388b026a 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -12,7 +12,6 @@
12/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */ 12/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */
13 13
14//kbuild:lib-$(CONFIG_HEAD) += head.o 14//kbuild:lib-$(CONFIG_HEAD) += head.o
15//kbuild:lib-$(CONFIG_HEAD) += head_tail.o
16 15
17//usage:#define head_trivial_usage 16//usage:#define head_trivial_usage
18//usage: "[OPTIONS] [FILE]..." 17//usage: "[OPTIONS] [FILE]..."
@@ -35,7 +34,6 @@
35//usage: "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" 34//usage: "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
36 35
37#include "libbb.h" 36#include "libbb.h"
38#include "head_tail.h"
39 37
40/* This is a NOEXEC applet. Be very careful! */ 38/* This is a NOEXEC applet. Be very careful! */
41 39
@@ -140,7 +138,7 @@ eat_num(bool *negative_N, const char *p)
140 p++; 138 p++;
141 } 139 }
142#endif 140#endif
143 return xatoul_sfx(p, head_tail_suffixes); 141 return xatoul_sfx(p, bkm_suffixes);
144} 142}
145 143
146static const char head_opts[] ALIGN1 = 144static const char head_opts[] ALIGN1 =