aboutsummaryrefslogtreecommitdiff
path: root/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'ls.c')
-rw-r--r--ls.c11
1 files changed, 5 insertions, 6 deletions
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)
735 time_fmt= TIME_MOD; 735 time_fmt= TIME_MOD;
736#endif 736#endif
737#ifdef BB_FEATURE_AUTOWIDTH 737#ifdef BB_FEATURE_AUTOWIDTH
738 ioctl(fileno(stdout), TIOCGWINSZ, &win); 738 ioctl(fileno(stdout), TIOCGWINSZ, &win);
739 if (win.ws_row > 4) 739 if (win.ws_row > 4)
740 column_width = win.ws_row - 2; 740 column_width = win.ws_row - 2;
741 if (win.ws_col > 0) 741 if (win.ws_col > 0)
742 terminal_width = win.ws_col - 1; 742 terminal_width = win.ws_col - 1;
743#endif 743#endif
744 tabstops = 8;
745 nfiles=0; 744 nfiles=0;
746 745
747 /* process options */ 746 /* process options */