summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-04-19 14:22:05 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-04-19 14:22:05 +0000
commit1ed5a743f01f83f4f951f8b1c1e6f1d0893c608d (patch)
tree87ded8f2eae1ade7a1fb5de07397d91b69649225
parent5dc5d3a8a87c0dc9d57f2988f1976628b0cdef85 (diff)
remove build warnings:
- unused variables - missing return ok espie@
-rw-r--r--usr.sbin/config/mkmakefile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index 8a824f58e63..cba85e633c2 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkmakefile.c,v 1.29 2008/03/22 22:35:15 deraadt Exp $ */
+/* $OpenBSD: mkmakefile.c,v 1.30 2008/04/19 14:22:04 chl Exp $ */
/* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */
/*
@@ -454,15 +454,14 @@ emit_1rule(FILE *fp, struct files *fi, const char *fpath, const char *suffix,
if (fprintf(fp, "\t%s\n\n", fi->fi_mkrule[ruleindex]) < 0)
return (1);
}
+ return (0);
}
static int
emitrules(FILE *fp)
{
struct files *fi;
- const char *cp, *fpath;
- int ch;
- char buf[200];
+ const char *fpath;
/* write suffixes */
if (fprintf(fp,