diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-11 10:52:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-11 10:52:24 +0100 |
commit | a8a075acfee7b31c4da00cf3500b67354339e3b9 (patch) | |
tree | 07db5ef5e3c11e2a8137b360c3edc3bb026afaed /libbb | |
parent | 0fd9fb4244a6dd4ba71f81e355261115cd80d2f1 (diff) | |
download | busybox-w32-a8a075acfee7b31c4da00cf3500b67354339e3b9.tar.gz busybox-w32-a8a075acfee7b31c4da00cf3500b67354339e3b9.tar.bz2 busybox-w32-a8a075acfee7b31c4da00cf3500b67354339e3b9.zip |
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>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index bf6d4762c..7f0d62060 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -748,11 +748,7 @@ static int busybox_main(char **argv) | |||
748 | int col; | 748 | int col; |
749 | unsigned output_width; | 749 | unsigned output_width; |
750 | help: | 750 | help: |
751 | output_width = 80; | 751 | output_width = get_terminal_width(2); |
752 | if (ENABLE_FEATURE_AUTOWIDTH) { | ||
753 | /* Obtain the terminal width */ | ||
754 | output_width = get_terminal_width(2); | ||
755 | } | ||
756 | 752 | ||
757 | dup2(1, 2); | 753 | dup2(1, 2); |
758 | full_write2_str(bb_banner); /* reuse const string */ | 754 | full_write2_str(bb_banner); /* reuse const string */ |