diff options
author | hoek <hoek@FreeBSD.org> | 2000-05-21 05:40:44 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 2000-05-21 05:40:44 +0000 |
commit | 65f441c07383ce9e6f10124810cff27e1cb0f737 (patch) | |
tree | 7340396347af99daf664bb9002fea57040bdb7e0 | |
parent | e32c60c1fdf9d841032b190f2b1c661340da856a (diff) | |
download | FreeBSD-src-65f441c07383ce9e6f10124810cff27e1cb0f737.zip FreeBSD-src-65f441c07383ce9e6f10124810cff27e1cb0f737.tar.gz |
Compile in the case that anyone ever actually uses LEAVE_FREE_CHARS.
It's not clear what this does nor why they would do it, but it should
compile, now. This could be a case where fixing the code so that it
compiles merely masks more devious dysfunctional behaviour.
-rw-r--r-- | sys/dev/dgb/dgb.c | 2 | ||||
-rw-r--r-- | sys/gnu/i386/isa/dgb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c index f054e7b..3755c43 100644 --- a/sys/dev/dgb/dgb.c +++ b/sys/dev/dgb/dgb.c @@ -2028,7 +2028,7 @@ dgbstart(tp) size=tail-head-LEAVE_FREE_CHARS; if (size <0) size=0; - } else { + else { size=port->txbufsize-head; if(tail+port->txbufsize < head) size=0; diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c index f054e7b..3755c43 100644 --- a/sys/gnu/i386/isa/dgb.c +++ b/sys/gnu/i386/isa/dgb.c @@ -2028,7 +2028,7 @@ dgbstart(tp) size=tail-head-LEAVE_FREE_CHARS; if (size <0) size=0; - } else { + else { size=port->txbufsize-head; if(tail+port->txbufsize < head) size=0; |