diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-06-05 19:56:52 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-06-05 19:56:52 +0000 |
| commit | 47bb6b11f3e1619ca95afc191d60aa01de629c8e (patch) | |
| tree | 0e7d33c5ebf1f8f23f42eedbfb8a45de45616f8c /bin | |
| parent | cf0feaeee9e1ed90a338e1f4635d153fe08836a1 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/ls/print.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c index 4c3f568535c3..8d47501e2e8a 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -92,7 +92,6 @@ typedef enum Colors { char *defcolors = "4x5x2x3x1x464301060203"; static int colors[C_NUMCOLORS][2]; -static int color_printed = 0; #endif void @@ -117,6 +116,9 @@ printlong(dp) FTSENT *p; NAMES *np; char buf[20]; +#ifdef COLORLS + int color_printed = 0; +#endif if (dp->list->fts_level != FTS_ROOTLEVEL && (f_longform || f_size)) (void)printf("total %lu\n", howmany(dp->btotal, blocksize)); @@ -269,6 +271,9 @@ printaname(p, inodefield, sizefield) { struct stat *sp; int chcnt; +#ifdef COLORLS + int color_printed = 0; +#endif sp = p->fts_statp; chcnt = 0; |
