From 13a64523e9313c2b477a7aafcf987717f2d6a0f5 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 22 Jan 2001 07:03:06 +0000 Subject: 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. :-( --- usr.sbin/config/config.y | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'usr.sbin/config/config.y') 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); } /* -- cgit v1.1