diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-13 10:48:45 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-13 10:48:45 +0000 |
commit | 504f0708f8f998f5046f7aa20302eafa0cadcb26 (patch) | |
tree | 785f8bc8cd9da5efeb82abd9b0315652164cebb1 /coreutils/tail.c | |
parent | b5ef110a518d4d4175a7f460ee0a9f95668e58b3 (diff) | |
download | busybox-w32-504f0708f8f998f5046f7aa20302eafa0cadcb26.tar.gz busybox-w32-504f0708f8f998f5046f7aa20302eafa0cadcb26.tar.bz2 busybox-w32-504f0708f8f998f5046f7aa20302eafa0cadcb26.zip |
- wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warning
about unused label.
git-svn-id: svn://busybox.net/trunk/busybox@12867 69ca8d6d-28ef-0310-b511-8ec308f3f277
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; |