aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-13 10:48:45 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-13 10:48:45 +0000
commit5816ccb190e0ffc10d9f4da2f98a2cb0da6f6315 (patch)
tree785f8bc8cd9da5efeb82abd9b0315652164cebb1 /coreutils/tail.c
parentec351c32e33517e103315927f694d43478c41f67 (diff)
downloadbusybox-5816ccb190e0ffc10d9f4da2f98a2cb0da6f6315.tar.gz
- wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warning
about unused label.
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r--coreutils/tail.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index cc1517a7e..bda8ae04f 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -96,7 +96,7 @@ static ssize_t tail_read(int fd, char *buf, size_t count)
static const char tail_opts[] =
"fn:c:"
-#ifdef CONFIG_FEATURE_FANCY_TAIL
+#if ENABLE_FEATURE_FANCY_TAIL
"qs:v"
#endif
;
@@ -142,7 +142,9 @@ int tail_main(int argc, char **argv)
count_bytes = 1;
/* FALLS THROUGH */
case 'n':
+#if ENABLE_FEATURE_FANCY_TAIL
GET_COUNT:
+#endif
count = bb_xgetlarg10_sfx(optarg, tail_suffixes);
/* Note: Leading whitespace is an error trapped above. */
if (*optarg == '+') {
@@ -154,7 +156,7 @@ int tail_main(int argc, char **argv)
count = -count;
}
break;
-#ifdef CONFIG_FEATURE_FANCY_TAIL
+#if ENABLE_FEATURE_FANCY_TAIL
case 'q':
header_threshhold = INT_MAX;
break;