diff options
author | ache <ache@FreeBSD.org> | 1997-03-26 15:19:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-26 15:19:55 +0000 |
commit | e27bac84c505d7a1b656909477bf094d65e7096b (patch) | |
tree | 5521706a357a2ce41f886f0afbd9ab09b0c11619 /usr.sbin/config/config.y | |
parent | 9e4ff703f5c19f141c6b5645ada102c9d24e0838 (diff) | |
download | FreeBSD-src-e27bac84c505d7a1b656909477bf094d65e7096b.zip FreeBSD-src-e27bac84c505d7a1b656909477bf094d65e7096b.tar.gz |
Add #define's for port "none" and "auto"
Now port ommiting is equal to port "none" not to port 0
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r-- | usr.sbin/config/config.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index c35127c..fc396b7 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -618,9 +618,9 @@ Info: PORT NUMBER = { cur.d_portn = $2; } | PORT AUTO - = { cur.d_portn = -1; } | + = { cur.d_portn = PORT_AUTO; } | PORT NONE - = { cur.d_portn = -2; } | + = { cur.d_portn = PORT_NONE; } | TTY = { cur.d_mask = "tty"; } | BIO @@ -907,7 +907,7 @@ init_dev(dp) dp->d_pri = -1; dp->d_slave = dp->d_lun = dp->d_target = dp->d_drive = dp->d_unit = UNKNOWN; dp->d_port = (char *)0; - dp->d_portn = 0; + dp->d_portn = PORT_NONE; dp->d_irq = -1; dp->d_drq = -1; dp->d_maddr = 0; |