summaryrefslogtreecommitdiffstats
path: root/bin/ls
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-06-06 07:14:01 +0000
committerache <ache@FreeBSD.org>2000-06-06 07:14:01 +0000
commit8f5fd01ed689cbf04297e38f5cfdbe08dc330762 (patch)
tree32e499c48559245c0536e249cc85e2db8d6becc0 /bin/ls
parent1b57c1627cd95f6a8b7ea5bc85f15e6254320c4f (diff)
downloadFreeBSD-src-8f5fd01ed689cbf04297e38f5cfdbe08dc330762.zip
FreeBSD-src-8f5fd01ed689cbf04297e38f5cfdbe08dc330762.tar.gz
Move colorquit() prototype to extern.h
Add "extern" to variables declarations in extern.h to not make them commons into each compiled file.
Diffstat (limited to 'bin/ls')
-rw-r--r--bin/ls/extern.h7
-rw-r--r--bin/ls/ls.c1
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/ls/extern.h b/bin/ls/extern.h
index 5f063cd..9ba00ee 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 9bda2b1..84bc730 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;
OpenPOWER on IntegriCloud