summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-10-24 00:31:59 +0000
committerimp <imp@FreeBSD.org>2006-10-24 00:31:59 +0000
commit340936b70bdb4f940477575096982f8c30f45acd (patch)
treed2c2a39616e0e8222e96a33e03e28df657833fef /usr.sbin/config/config.y
parent38fb98a99068cbc7a00d904df8f4a044c7e2652b (diff)
downloadFreeBSD-src-340936b70bdb4f940477575096982f8c30f45acd.zip
FreeBSD-src-340936b70bdb4f940477575096982f8c30f45acd.tar.gz
End my resistance to jmg's multiple hints files and bring in support
for having multiple hints files generate a correct hints.c (eg, with all the specified ones catenated together).
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 444fe58..40ee93d 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -81,7 +81,6 @@ struct device_head dtab;
char *ident;
char *env;
int envmode;
-char *hints;
int hintmode;
int yyline;
const char *yyfile;
@@ -191,10 +190,11 @@ Config_spec:
} |
HINTS ID
= {
- if (hints != NULL)
- errx(1, "More than one 'hints' line at %s:%d", yyfile,
- yyline);
- hints = $2;
+ struct hint *hint;
+
+ hint = (struct hint *)calloc(1, sizeof (struct hint));
+ hint->hint_name = $2;
+ STAILQ_INSERT_TAIL(&hints, hint, hint_next);
hintmode = 1;
}
OpenPOWER on IntegriCloud