summaryrefslogtreecommitdiff
path: root/usr.sbin/config/mkmakefile.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-06-02 20:42:18 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-06-02 20:42:18 +0000
commit037159200032c37e75454ae922a390b8c81f1eee (patch)
tree01d05d3a6d72fa82b07bf3ad3ba483548d222b4b /usr.sbin/config/mkmakefile.c
parentfb135151e4144723c9cc22cd966ad48d381e8192 (diff)
fix potential use of uninitialized value, and remove unused variables.
ok deraadt@
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r--usr.sbin/config/mkmakefile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index 4732dee75ea..67918585d4d 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkmakefile.c,v 1.34 2010/05/31 21:56:43 deraadt Exp $ */
+/* $OpenBSD: mkmakefile.c,v 1.35 2010/06/02 20:42:17 chl Exp $ */
/* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */
/*
@@ -365,10 +365,8 @@ static int
emitfiles(FILE *fp, int suffix)
{
struct files *fi;
- struct config *cf;
int lpos, len, sp;
const char *fpath;
- char swapname[100];
int uppersuffix = toupper(suffix);
if (fprintf(fp, "%cFILES=", uppersuffix) < 0)