diff options
author | peter <peter@FreeBSD.org> | 2001-01-22 07:03:06 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-01-22 07:03:06 +0000 |
commit | 13a64523e9313c2b477a7aafcf987717f2d6a0f5 (patch) | |
tree | 9a6ed470dd04769887d154cb171ec8b1a7ee4b67 /usr.sbin/config/config.y | |
parent | 30bc358ebbc2476d59fbc77346b0ede8fdfe1d9b (diff) | |
download | FreeBSD-src-13a64523e9313c2b477a7aafcf987717f2d6a0f5.zip FreeBSD-src-13a64523e9313c2b477a7aafcf987717f2d6a0f5.tar.gz |
Clean up some obsolete stuff. config -r has not been needed since around
FreeBSD 3.x or so when the 'make depend' picked up the opt_foo.h files.
Convert warnings into actual errors in the hope that buildkernel users
will pay more attention. :-(
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r-- | usr.sbin/config/config.y | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 0354527..9fde700 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -165,7 +165,7 @@ Config_spec: System_spec: CONFIG System_id System_parameter_list - = { warnx("line %d: root/dump/swap specifications obsolete", yyline);} + = { errx(1, "line %d: root/dump/swap specifications obsolete", yyline);} | CONFIG System_id ; @@ -209,11 +209,8 @@ Option: */ op->op_line = yyline; opt = op; - if ((s = strchr(op->op_name, '='))) { - warnx("line %d: The `=' in options should not be quoted", yyline); - *s = '\0'; - op->op_value = ns(s + 1); - } + if ((s = strchr(op->op_name, '='))) + errx(1, "line %d: The `=' in options should not be quoted", yyline); } | Save_id EQUALS Opt_value = { @@ -295,7 +292,7 @@ Device_spec: cur.d_name = $2; cur.d_count = $3; if (cur.d_count == 0) - warnx("line %d: devices with zero units are not likely to be correct", yyline); + errx(1, "line %d: devices with zero units are not likely to be correct", yyline); } ; %% @@ -304,7 +301,7 @@ static void yyerror(char *s) { - warnx("line %d: %s", yyline + 1, s); + errx(1, "line %d: %s", yyline + 1, s); } /* |