diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-01-24 23:34:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-01-24 23:34:48 +0000 |
commit | f5d5e77321ad32b3952dcdf21d14fd0ef3d4c1a9 (patch) | |
tree | bc91a3dbedbdfc52a5ade52815d241d2f1100082 /coreutils/ls.c | |
parent | 26439a2991f81b52c93b1e81d16f328f359a6611 (diff) | |
download | busybox-w32-f5d5e77321ad32b3952dcdf21d14fd0ef3d4c1a9.tar.gz busybox-w32-f5d5e77321ad32b3952dcdf21d14fd0ef3d4c1a9.tar.bz2 busybox-w32-f5d5e77321ad32b3952dcdf21d14fd0ef3d4c1a9.zip |
more bugs fixed -- found doing regression testing
-Erik
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 080768027..64e5bf828 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -171,6 +171,8 @@ static unsigned short column = 0; | |||
171 | static unsigned short terminal_width; | 171 | static unsigned short terminal_width; |
172 | static unsigned short column_width; | 172 | static unsigned short column_width; |
173 | static unsigned short tabstops; | 173 | static unsigned short tabstops; |
174 | #else | ||
175 | # define column_width COLUMN_WIDTH | ||
174 | #endif | 176 | #endif |
175 | 177 | ||
176 | static int status = EXIT_SUCCESS; | 178 | static int status = EXIT_SUCCESS; |
@@ -236,7 +238,7 @@ static void nexttabstop( void ) | |||
236 | column++; | 238 | column++; |
237 | } | 239 | } |
238 | } | 240 | } |
239 | nexttab= column + column_width + COLUMN_GAP ; | 241 | nexttab= column + column_width + COLUMN_GAP; |
240 | } | 242 | } |
241 | 243 | ||
242 | /*----------------------------------------------------------------------*/ | 244 | /*----------------------------------------------------------------------*/ |
@@ -429,8 +431,10 @@ void showfiles(struct dnode **dn, int nfiles) | |||
429 | ; | 431 | ; |
430 | if (column_width < len) column_width= len; | 432 | if (column_width < len) column_width= len; |
431 | } | 433 | } |
432 | #endif | ||
433 | ncols= (int)(terminal_width / (column_width + COLUMN_GAP)); | 434 | ncols= (int)(terminal_width / (column_width + COLUMN_GAP)); |
435 | #else | ||
436 | ncols= TERMINAL_WIDTH; | ||
437 | #endif | ||
434 | switch (style_fmt) { | 438 | switch (style_fmt) { |
435 | case STYLE_LONG: /* one record per line, extended info */ | 439 | case STYLE_LONG: /* one record per line, extended info */ |
436 | case STYLE_SINGLE: /* one record per line */ | 440 | case STYLE_SINGLE: /* one record per line */ |