diff options
author | peter <peter@FreeBSD.org> | 2000-06-10 22:13:40 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-06-10 22:13:40 +0000 |
commit | 9fbe309befea3309aaa3b4ba51b0a98b67237143 (patch) | |
tree | d1d5b4de3ae6d63afdbed089889761df8d9c9f2c /usr.sbin/config/mkoptions.c | |
parent | 705b81c200d1314114fe9874115a22605e085a4c (diff) | |
download | FreeBSD-src-9fbe309befea3309aaa3b4ba51b0a98b67237143.zip FreeBSD-src-9fbe309befea3309aaa3b4ba51b0a98b67237143.tar.gz |
A checkpoint of a part of a work-in-progress. Some more cleanups for
config(8). This commit allows control of the creation of the
#include "foo.h" files. We now only create them explicitly when needed.
BTW; these are mostly bad because they usually imply static limits on
numbers of units for devices. eg: struct mysoftc sc[NFOO];
These static limits have Got To Go.
Diffstat (limited to 'usr.sbin/config/mkoptions.c')
-rw-r--r-- | usr.sbin/config/mkoptions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/config/mkoptions.c b/usr.sbin/config/mkoptions.c index d53affd..f663331 100644 --- a/usr.sbin/config/mkoptions.c +++ b/usr.sbin/config/mkoptions.c @@ -112,6 +112,13 @@ options() read_options(); for (ol = otab; ol != 0; ol = ol->o_next) do_option(ol->o_name); + for (op = opt; op; op = op->op_next) { + if (!op->op_ownfile) { + printf("%s:%d: unknown option \"%s\"\n", + PREFIX, op->op_line, op->op_name); + exit(1); + } + } } /* |