diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-12-13 10:48:45 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-12-13 10:48:45 +0000 |
commit | 5816ccb190e0ffc10d9f4da2f98a2cb0da6f6315 (patch) | |
tree | 785f8bc8cd9da5efeb82abd9b0315652164cebb1 /coreutils/tail.c | |
parent | ec351c32e33517e103315927f694d43478c41f67 (diff) | |
download | busybox-w32-5816ccb190e0ffc10d9f4da2f98a2cb0da6f6315.tar.gz busybox-w32-5816ccb190e0ffc10d9f4da2f98a2cb0da6f6315.tar.bz2 busybox-w32-5816ccb190e0ffc10d9f4da2f98a2cb0da6f6315.zip |
- 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.c | 6 |
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) | |||
96 | 96 | ||
97 | static const char tail_opts[] = | 97 | static const char tail_opts[] = |
98 | "fn:c:" | 98 | "fn:c:" |
99 | #ifdef CONFIG_FEATURE_FANCY_TAIL | 99 | #if ENABLE_FEATURE_FANCY_TAIL |
100 | "qs:v" | 100 | "qs:v" |
101 | #endif | 101 | #endif |
102 | ; | 102 | ; |
@@ -142,7 +142,9 @@ int tail_main(int argc, char **argv) | |||
142 | count_bytes = 1; | 142 | count_bytes = 1; |
143 | /* FALLS THROUGH */ | 143 | /* FALLS THROUGH */ |
144 | case 'n': | 144 | case 'n': |
145 | #if ENABLE_FEATURE_FANCY_TAIL | ||
145 | GET_COUNT: | 146 | GET_COUNT: |
147 | #endif | ||
146 | count = bb_xgetlarg10_sfx(optarg, tail_suffixes); | 148 | count = bb_xgetlarg10_sfx(optarg, tail_suffixes); |
147 | /* Note: Leading whitespace is an error trapped above. */ | 149 | /* Note: Leading whitespace is an error trapped above. */ |
148 | if (*optarg == '+') { | 150 | if (*optarg == '+') { |
@@ -154,7 +156,7 @@ int tail_main(int argc, char **argv) | |||
154 | count = -count; | 156 | count = -count; |
155 | } | 157 | } |
156 | break; | 158 | break; |
157 | #ifdef CONFIG_FEATURE_FANCY_TAIL | 159 | #if ENABLE_FEATURE_FANCY_TAIL |
158 | case 'q': | 160 | case 'q': |
159 | header_threshhold = INT_MAX; | 161 | header_threshhold = INT_MAX; |
160 | break; | 162 | break; |