busybox: stop depending on FEATURE_AUTOWIDTH for applet list
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 11 Jan 2017 09:52:24 +0000 (10:52 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 11 Jan 2017 09:52:24 +0000 (10:52 +0100)
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>
libbb/appletlib.c

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