From: Mark Whitley Date: Thu, 1 Feb 2001 19:39:43 +0000 (-0000) Subject: Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined. X-Git-Tag: 0_50~263 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9b300d0b1f73ae796ec1f27e9efed947ff56a9af;p=oweals%2Fbusybox.git Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined. --- diff --git a/coreutils/ls.c b/coreutils/ls.c index a5574a52e..42b24456a 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -735,13 +735,12 @@ extern int ls_main(int argc, char **argv) time_fmt= TIME_MOD; #endif #ifdef BB_FEATURE_AUTOWIDTH - ioctl(fileno(stdout), TIOCGWINSZ, &win); - if (win.ws_row > 4) - column_width = win.ws_row - 2; - if (win.ws_col > 0) - terminal_width = win.ws_col - 1; + ioctl(fileno(stdout), TIOCGWINSZ, &win); + if (win.ws_row > 4) + column_width = win.ws_row - 2; + if (win.ws_col > 0) + terminal_width = win.ws_col - 1; #endif - tabstops = 8; nfiles=0; /* process options */ diff --git a/ls.c b/ls.c index a5574a52e..42b24456a 100644 --- a/ls.c +++ b/ls.c @@ -735,13 +735,12 @@ extern int ls_main(int argc, char **argv) time_fmt= TIME_MOD; #endif #ifdef BB_FEATURE_AUTOWIDTH - ioctl(fileno(stdout), TIOCGWINSZ, &win); - if (win.ws_row > 4) - column_width = win.ws_row - 2; - if (win.ws_col > 0) - terminal_width = win.ws_col - 1; + ioctl(fileno(stdout), TIOCGWINSZ, &win); + if (win.ws_row > 4) + column_width = win.ws_row - 2; + if (win.ws_col > 0) + terminal_width = win.ws_col - 1; #endif - tabstops = 8; nfiles=0; /* process options */