diff options
author | peter <peter@FreeBSD.org> | 1999-04-18 13:36:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-18 13:36:29 +0000 |
commit | e0200a9fdea9ada7eb6f9af2ac7b63fcf5112e61 (patch) | |
tree | ccd7a5789ca34e7c46920f962ce52077a7c1d1c6 /usr.sbin/config/config.y | |
parent | 219dec9bd389788fb4eb631f353e772a61532626 (diff) | |
download | FreeBSD-src-e0200a9fdea9ada7eb6f9af2ac7b63fcf5112e61.zip FreeBSD-src-e0200a9fdea9ada7eb6f9af2ac7b63fcf5112e61.tar.gz |
Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially the
same and were merged into a single newbus_ioconf.c. CG'd some more unused
code.
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r-- | usr.sbin/config/config.y | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 9abeb99..03fdb91 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -12,7 +12,6 @@ %token BIO %token BUS %token CAM -%token HA %token COMMA %token CONFIG %token CONFLICTS @@ -113,8 +112,6 @@ * @(#)config.y 8.1 (Berkeley) 6/6/93 */ -#include "config.h" - #include <sys/disklabel.h> #include <sys/diskslice.h> @@ -123,6 +120,8 @@ #include <stdio.h> #include <string.h> +#include "config.h" + static struct device cur; static struct device *curp = 0; @@ -134,10 +133,7 @@ char errbuf[80]; int maxusers; int do_trace; -#if MACHINE_I386 -int seen_isa; int seen_scbus; -#endif #define ns(s) strdup(s) @@ -148,6 +144,8 @@ static void verifycomp __P((struct file_list *)); static struct device *connect __P((char *, int)); static struct device *huhcon __P((char *)); static dev_t *verifyswap __P((struct file_list *, dev_t *, dev_t *)); +static void yyerror __P((char *s)); + %} %% @@ -550,9 +548,7 @@ Dev_name: Init_dev Dev NUMBER = { cur.d_name = $2; - if (eq($2, "isa")) - seen_isa = 1; - else if (eq($2, "scbus")) + if (eq($2, "scbus")) seen_scbus = 1; cur.d_unit = $3; }; @@ -629,8 +625,6 @@ Info: = { cur.d_mask = "bio"; } | CAM = { cur.d_mask = "cam"; } | - HA - = { cur.d_mask = "ha"; } | NET = { cur.d_mask = "net"; } | FLAGS NUMBER @@ -664,7 +658,7 @@ Id_list: %% -void +static void yyerror(s) char *s; { |