diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-02 04:11:40 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-02 04:11:40 +0200 |
commit | e0ea125ce24ebdd1febf930fca436f1a8fb7d48d (patch) | |
tree | 5a8ef3475195e87b81980e953e8f74a6c9fb1169 /coreutils | |
parent | b9258b86a7985a45921696ede192c51cb9eb52be (diff) | |
download | busybox-w32-e0ea125ce24ebdd1febf930fca436f1a8fb7d48d.tar.gz busybox-w32-e0ea125ce24ebdd1febf930fca436f1a8fb7d48d.tar.bz2 busybox-w32-e0ea125ce24ebdd1febf930fca436f1a8fb7d48d.zip |
tail: fix typo in variable name
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/tail.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index 4602f4d42..93f1514d0 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -119,7 +119,7 @@ int tail_main(int argc, char **argv) | |||
119 | 119 | ||
120 | char *tailbuf; | 120 | char *tailbuf; |
121 | size_t tailbufsize; | 121 | size_t tailbufsize; |
122 | unsigned header_threshhold = 1; | 122 | unsigned header_threshold = 1; |
123 | unsigned nfiles; | 123 | unsigned nfiles; |
124 | int i, opt; | 124 | int i, opt; |
125 | 125 | ||
@@ -152,10 +152,10 @@ int tail_main(int argc, char **argv) | |||
152 | if (opt & 0x2) count = eat_num(str_c); // -c | 152 | if (opt & 0x2) count = eat_num(str_c); // -c |
153 | if (opt & 0x4) count = eat_num(str_n); // -n | 153 | if (opt & 0x4) count = eat_num(str_n); // -n |
154 | #if ENABLE_FEATURE_FANCY_TAIL | 154 | #if ENABLE_FEATURE_FANCY_TAIL |
155 | /* q: make it impossible for nfiles to be > header_threshhold */ | 155 | /* q: make it impossible for nfiles to be > header_threshold */ |
156 | if (opt & 0x8) header_threshhold = UINT_MAX; // -q | 156 | if (opt & 0x8) header_threshold = UINT_MAX; // -q |
157 | //if (opt & 0x10) // -s | 157 | //if (opt & 0x10) // -s |
158 | if (opt & 0x20) header_threshhold = 0; // -v | 158 | if (opt & 0x20) header_threshold = 0; // -v |
159 | # define FOLLOW_RETRY (opt & 0x40) | 159 | # define FOLLOW_RETRY (opt & 0x40) |
160 | #else | 160 | #else |
161 | # define FOLLOW_RETRY 0 | 161 | # define FOLLOW_RETRY 0 |
@@ -216,7 +216,7 @@ int tail_main(int argc, char **argv) | |||
216 | if (ENABLE_FEATURE_FANCY_TAIL && fd < 0) | 216 | if (ENABLE_FEATURE_FANCY_TAIL && fd < 0) |
217 | continue; /* may happen with -F */ | 217 | continue; /* may happen with -F */ |
218 | 218 | ||
219 | if (nfiles > header_threshhold) { | 219 | if (nfiles > header_threshold) { |
220 | tail_xprint_header(fmt, argv[i]); | 220 | tail_xprint_header(fmt, argv[i]); |
221 | fmt = header_fmt_str; | 221 | fmt = header_fmt_str; |
222 | } | 222 | } |
@@ -373,7 +373,7 @@ int tail_main(int argc, char **argv) | |||
373 | } | 373 | } |
374 | if (ENABLE_FEATURE_FANCY_TAIL && fd < 0) | 374 | if (ENABLE_FEATURE_FANCY_TAIL && fd < 0) |
375 | continue; | 375 | continue; |
376 | if (nfiles > header_threshhold) { | 376 | if (nfiles > header_threshold) { |
377 | fmt = header_fmt_str; | 377 | fmt = header_fmt_str; |
378 | } | 378 | } |
379 | for (;;) { | 379 | for (;;) { |