1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Cosmetique of prev. optimization - don't use global variable

This commit is contained in:
Andrey A. Chernov 2000-06-05 19:56:52 +00:00
parent cf0feaeee9
commit 47bb6b11f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61292

View File

@ -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;