diff options
author | cognet <cognet@FreeBSD.org> | 2004-05-11 15:42:44 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-05-11 15:42:44 +0000 |
commit | 0fb3fb5b41f130352b561e7c240e6294a78bb663 (patch) | |
tree | a24830ff7226218adcd43265de41c51d98214622 /usr.sbin/config | |
parent | f6d9b853cba00ba716adeb690f6ce139c7e01b57 (diff) | |
download | FreeBSD-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/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 3 |
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) { |