Fix some references to MIN() and MAX() that have been replaced by min() and
max().
This commit is contained in:
parent
fdd1328412
commit
be52c96688
@ -1104,7 +1104,7 @@ iestart(ifp)
|
||||
}
|
||||
|
||||
m_freem(m0);
|
||||
len = MAX(len, ETHERMINLEN);
|
||||
len = max(len, ETHERMINLEN);
|
||||
|
||||
#if NBPFILTER > 0
|
||||
/*
|
||||
|
@ -286,7 +286,7 @@ mseread(dev, uio)
|
||||
sc->sc_bytesread = 0;
|
||||
}
|
||||
splx(s);
|
||||
xfer = MIN(uio->uio_resid, PROTOBYTES - sc->sc_bytesread);
|
||||
xfer = min(uio->uio_resid, PROTOBYTES - sc->sc_bytesread);
|
||||
if (error = uiomove(&sc->sc_bytes[sc->sc_bytesread], xfer, uio))
|
||||
return (error);
|
||||
sc->sc_bytesread += xfer;
|
||||
|
@ -359,7 +359,7 @@ void el_start(struct ifnet *ifp)
|
||||
}
|
||||
m_freem(m0);
|
||||
|
||||
len = MAX(len,ETHER_MIN_LEN);
|
||||
len = max(len,ETHER_MIN_LEN);
|
||||
|
||||
/* Give the packet to the bpf, if any */
|
||||
#if NBPFILTER > 0
|
||||
|
@ -1104,7 +1104,7 @@ iestart(ifp)
|
||||
}
|
||||
|
||||
m_freem(m0);
|
||||
len = MAX(len, ETHERMINLEN);
|
||||
len = max(len, ETHERMINLEN);
|
||||
|
||||
#if NBPFILTER > 0
|
||||
/*
|
||||
|
@ -637,7 +637,7 @@ is_start(ifp)
|
||||
|
||||
|
||||
m_freem(m0);
|
||||
len = MAX(len,ETHER_MIN_LEN);
|
||||
len = max(len,ETHER_MIN_LEN);
|
||||
|
||||
/*
|
||||
* Init transmit registers, and set transmit start flag.
|
||||
|
@ -530,7 +530,7 @@ lptwrite(dev_t dev, struct uio * uio)
|
||||
struct lpt_softc *sc = lpt_sc + LPTUNIT(minor(dev));
|
||||
|
||||
sc->sc_state &= ~INTERRUPTED;
|
||||
while (n = MIN(BUFSIZE, uio->uio_resid)) {
|
||||
while (n = min(BUFSIZE, uio->uio_resid)) {
|
||||
sc->sc_cp = sc->sc_inbuf->b_un.b_addr ;
|
||||
uiomove(sc->sc_cp, n, uio);
|
||||
sc->sc_xfercnt = n ;
|
||||
|
@ -286,7 +286,7 @@ mseread(dev, uio)
|
||||
sc->sc_bytesread = 0;
|
||||
}
|
||||
splx(s);
|
||||
xfer = MIN(uio->uio_resid, PROTOBYTES - sc->sc_bytesread);
|
||||
xfer = min(uio->uio_resid, PROTOBYTES - sc->sc_bytesread);
|
||||
if (error = uiomove(&sc->sc_bytes[sc->sc_bytesread], xfer, uio))
|
||||
return (error);
|
||||
sc->sc_bytesread += xfer;
|
||||
|
Loading…
Reference in New Issue
Block a user