Fix some references to MIN() and MAX() that have been replaced by min() and

max().
This commit is contained in:
rgrimes 1994-05-26 13:30:20 +00:00
parent fdd1328412
commit be52c96688
7 changed files with 7 additions and 7 deletions

View File

@ -1104,7 +1104,7 @@ iestart(ifp)
}
m_freem(m0);
len = MAX(len, ETHERMINLEN);
len = max(len, ETHERMINLEN);
#if NBPFILTER > 0
/*

View File

@ -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;

View File

@ -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

View File

@ -1104,7 +1104,7 @@ iestart(ifp)
}
m_freem(m0);
len = MAX(len, ETHERMINLEN);
len = max(len, ETHERMINLEN);
#if NBPFILTER > 0
/*

View File

@ -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.

View File

@ -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 ;

View File

@ -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;