diff options
author | Denys Vlasenko | 2021-06-02 04:11:40 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-06-02 04:11:40 +0200 |
commit | e0ea125ce24ebdd1febf930fca436f1a8fb7d48d (patch) | |
tree | 5a8ef3475195e87b81980e953e8f74a6c9fb1169 /coreutils | |
parent | b9258b86a7985a45921696ede192c51cb9eb52be (diff) | |
download | busybox-e0ea125ce24ebdd1febf930fca436f1a8fb7d48d.zip busybox-e0ea125ce24ebdd1febf930fca436f1a8fb7d48d.tar.gz |
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 4602f4d..93f1514 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -119,7 +119,7 @@ int tail_main(int argc, char **argv) char *tailbuf; size_t tailbufsize; - unsigned header_threshhold = 1; + unsigned header_threshold = 1; unsigned nfiles; int i, opt; @@ -152,10 +152,10 @@ int tail_main(int argc, char **argv) if (opt & 0x2) count = eat_num(str_c); // -c if (opt & 0x4) count = eat_num(str_n); // -n #if ENABLE_FEATURE_FANCY_TAIL - /* q: make it impossible for nfiles to be > header_threshhold */ - if (opt & 0x8) header_threshhold = UINT_MAX; // -q + /* q: make it impossible for nfiles to be > header_threshold */ + if (opt & 0x8) header_threshold = UINT_MAX; // -q //if (opt & 0x10) // -s - if (opt & 0x20) header_threshhold = 0; // -v + if (opt & 0x20) header_threshold = 0; // -v # define FOLLOW_RETRY (opt & 0x40) #else # define FOLLOW_RETRY 0 @@ -216,7 +216,7 @@ int tail_main(int argc, char **argv) if (ENABLE_FEATURE_FANCY_TAIL && fd < 0) continue; /* may happen with -F */ - if (nfiles > header_threshhold) { + if (nfiles > header_threshold) { tail_xprint_header(fmt, argv[i]); fmt = header_fmt_str; } @@ -373,7 +373,7 @@ int tail_main(int argc, char **argv) } if (ENABLE_FEATURE_FANCY_TAIL && fd < 0) continue; - if (nfiles > header_threshhold) { + if (nfiles > header_threshold) { fmt = header_fmt_str; } for (;;) { |