diff options
Diffstat (limited to 'coreutils/head.c')
-rw-r--r-- | coreutils/head.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/coreutils/head.c b/coreutils/head.c index 0fab8a8ae..75189eda8 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -20,14 +20,12 @@ static const char head_opts[] ALIGN1 = | |||
20 | #endif | 20 | #endif |
21 | ; | 21 | ; |
22 | 22 | ||
23 | #if ENABLE_FEATURE_FANCY_HEAD | ||
24 | static const struct suffix_mult head_suffixes[] = { | 23 | static const struct suffix_mult head_suffixes[] = { |
25 | { "b", 512 }, | 24 | { "b", 512 }, |
26 | { "k", 1024 }, | 25 | { "k", 1024 }, |
27 | { "m", 1024*1024 }, | 26 | { "m", 1024*1024 }, |
28 | { "", 0 } | 27 | { "", 0 } |
29 | }; | 28 | }; |
30 | #endif | ||
31 | 29 | ||
32 | static const char header_fmt_str[] ALIGN1 = "\n==> %s <==\n"; | 30 | static const char header_fmt_str[] ALIGN1 = "\n==> %s <==\n"; |
33 | 31 | ||
@@ -78,11 +76,7 @@ int head_main(int argc, char **argv) | |||
78 | #if ENABLE_INCLUDE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD | 76 | #if ENABLE_INCLUDE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD |
79 | GET_COUNT: | 77 | GET_COUNT: |
80 | #endif | 78 | #endif |
81 | #if !ENABLE_FEATURE_FANCY_HEAD | ||
82 | count = xatoul(p); | ||
83 | #else | ||
84 | count = xatoul_sfx(p, head_suffixes); | 79 | count = xatoul_sfx(p, head_suffixes); |
85 | #endif | ||
86 | break; | 80 | break; |
87 | default: | 81 | default: |
88 | bb_show_usage(); | 82 | bb_show_usage(); |