summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorMark Whitley2001-02-01 19:39:43 +0000
committerMark Whitley2001-02-01 19:39:43 +0000
commit9b300d0b1f73ae796ec1f27e9efed947ff56a9af (patch)
tree5bbb351cb017a08d7fc0072a24ec2015825cf2ba /coreutils
parentf2cc2762bb273fbabe8c2eadeb3b8669550582f0 (diff)
downloadbusybox-9b300d0b1f73ae796ec1f27e9efed947ff56a9af.zip
busybox-9b300d0b1f73ae796ec1f27e9efed947ff56a9af.tar.gz
Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index a5574a5..42b2445 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 */