summaryrefslogtreecommitdiff
path: root/usr.sbin/config/files.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-09-17 17:36:14 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-09-17 17:36:14 +0000
commit90da2d415131bb0b57c6d426e148aa72348ed88e (patch)
treed976cc409e3a9a9cc080f51a34c362884065541e /usr.sbin/config/files.c
parent792539ba1233c55fdd2a55ebba3615fb22de6379 (diff)
tedu lint tendrils through config internals.
also mark some known targets as .PHONY okay miod@
Diffstat (limited to 'usr.sbin/config/files.c')
-rw-r--r--usr.sbin/config/files.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/config/files.c b/usr.sbin/config/files.c
index 1e7c1efcbb4..b80f6e5cdd0 100644
--- a/usr.sbin/config/files.c
+++ b/usr.sbin/config/files.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: files.c,v 1.18 2011/10/02 22:20:49 edd Exp $ */
+/* $OpenBSD: files.c,v 1.19 2012/09/17 17:36:13 espie Exp $ */
/* $NetBSD: files.c,v 1.6 1996/03/17 13:18:17 cgd Exp $ */
/*
@@ -90,8 +90,7 @@ initfiles(void)
}
void
-addfile(struct nvlist *nvpath, struct nvlist *optx, int flags, const char *rule,
- const char *lintrule)
+addfile(struct nvlist *nvpath, struct nvlist *optx, int flags, const char *rule)
{
struct files *fi;
const char *dotp, *dotp1, *tail, *path, *tail1 = NULL;
@@ -164,8 +163,7 @@ addfile(struct nvlist *nvpath, struct nvlist *optx, int flags, const char *rule,
fi->fi_base = intern(base);
fi->fi_optx = optx;
fi->fi_optf = NULL;
- fi->fi_mkrule[0] = rule;
- fi->fi_mkrule[1] = lintrule;
+ fi->fi_mkrule = rule;
*nextfile = fi;
nextfile = &fi->fi_next;
return;