busybox: stop depending on FEATURE_AUTOWIDTH for applet list

Many other appletw don't - they unconditionally use get_terminal_wodth(),
and here the amount of code saved by FEATURE_AUTOWIDTH=n is tiny.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-01-11 10:52:24 +01:00
parent 0fd9fb4244
commit a8a075acfe

View File

@ -748,11 +748,7 @@ static int busybox_main(char **argv)
int col; int col;
unsigned output_width; unsigned output_width;
help: help:
output_width = 80; output_width = get_terminal_width(2);
if (ENABLE_FEATURE_AUTOWIDTH) {
/* Obtain the terminal width */
output_width = get_terminal_width(2);
}
dup2(1, 2); dup2(1, 2);
full_write2_str(bb_banner); /* reuse const string */ full_write2_str(bb_banner); /* reuse const string */