summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2004-05-11 15:42:44 +0000
committercognet <cognet@FreeBSD.org>2004-05-11 15:42:44 +0000
commit0fb3fb5b41f130352b561e7c240e6294a78bb663 (patch)
treea24830ff7226218adcd43265de41c51d98214622 /usr.sbin/config
parentf6d9b853cba00ba716adeb690f6ce139c7e01b57 (diff)
downloadFreeBSD-src-0fb3fb5b41f130352b561e7c240e6294a78bb663.zip
FreeBSD-src-0fb3fb5b41f130352b561e7c240e6294a78bb663.tar.gz
Fix a few glitches in my previous commit.
This makes config(8) WARNS?=6 compliant.
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/Makefile2
-rw-r--r--usr.sbin/config/mkmakefile.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/config/Makefile b/usr.sbin/config/Makefile
index 5c6cf5d..6f6ecce 100644
--- a/usr.sbin/config/Makefile
+++ b/usr.sbin/config/Makefile
@@ -6,7 +6,7 @@ MAN= config.8
SRCS= config.y main.c lang.l mkmakefile.c mkheaders.c \
mkoptions.c y.tab.h
-WARNS?= 1
+WARNS?= 6
CFLAGS+= -I. -I${.CURDIR}
DPADD= ${LIBL}
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index f7f3a9c..63bd348 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -293,7 +293,7 @@ makefile(void)
moveifchanged(path("env.c.new"), path("env.c"));
}
-void
+static void
read_file(char *fname)
{
FILE *fp;
@@ -542,7 +542,6 @@ static void
read_files(void)
{
char fname[MAXPATHLEN];
- FILE *fp;
struct files_name *nl, *tnl;
if (ident == NULL) {
OpenPOWER on IntegriCloud