From fd4e4d608f4874d25e15bdf692712cb3ee26953d Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 6 Jun 2000 07:14:01 +0000 Subject: [PATCH] Move colorquit() prototype to extern.h Add "extern" to variables declarations in extern.h to not make them commons into each compiled file. --- bin/ls/extern.h | 7 ++++--- bin/ls/ls.c | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/ls/extern.h b/bin/ls/extern.h index 5f063cdbc8ca..9ba00ee722e3 100644 --- a/bin/ls/extern.h +++ b/bin/ls/extern.h @@ -53,8 +53,9 @@ int len_octal __P((char *, int)); int prn_octal __P((char *)); #ifdef COLORLS void parsecolors __P((char *cs)); +void colorquit __P((int)); -char *ansi_fgcol; -char *ansi_bgcol; -char *ansi_coloff; +extern char *ansi_fgcol; +extern char *ansi_bgcol; +extern char *ansi_coloff; #endif diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 9bda2b1e1bd8..84bc7308ef2f 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -121,7 +121,6 @@ int f_color; /* add type in color for non-regular files */ char *ansi_bgcol; /* ANSI sequence to set background colour */ char *ansi_fgcol; /* ANSI sequence to set foreground colour */ char *ansi_coloff; /* ANSI sequence to reset colours */ -extern void colorquit __P((int)); #endif int rval;