aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 14:44:18 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 14:44:18 +0000
commitf9cc9081205c29917da34460395b6da2dc4c4567 (patch)
tree8dd4e8a4db28561fad1dcaeabee936a3aad7187c /coreutils/tail.c
parent278809224505ecc8bbef7b9a86982bf35b46e719 (diff)
downloadbusybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.tar.gz
busybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.tar.bz2
busybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.zip
Provide our own isdigit macro. saves more than 400 bytes.
git-svn-id: svn://busybox.net/trunk/busybox@16685 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r--coreutils/tail.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 82c0d99bc..ed5ea1467 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -93,7 +93,7 @@ static const char header_fmt[] = "\n==> %s <==\n";
93int tail_main(int argc, char **argv) 93int tail_main(int argc, char **argv)
94{ 94{
95 long count = 10; 95 long count = 10;
96 unsigned int sleep_period = 1; 96 unsigned sleep_period = 1;
97 int from_top = 0; 97 int from_top = 0;
98 int follow = 0; 98 int follow = 0;
99 int header_threshhold = 1; 99 int header_threshhold = 1;
@@ -110,10 +110,9 @@ int tail_main(int argc, char **argv)
110 110
111#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_TAIL 111#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
112 /* Allow legacy syntax of an initial numeric option without -n. */ 112 /* Allow legacy syntax of an initial numeric option without -n. */
113 if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-') 113 if (argc >= 2 && (argv[1][0] == '+' || argv[1][0] == '-')
114 /* && (isdigit)(argv[1][1]) */ 114 && isdigit(argv[1][1])
115 && (((unsigned int)(argv[1][1] - '0')) <= 9)))) 115 ) {
116 {
117 optind = 2; 116 optind = 2;
118 optarg = argv[1]; 117 optarg = argv[1];
119 goto GET_COUNT; 118 goto GET_COUNT;