diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1994-05-26 13:30:20 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1994-05-26 13:30:20 +0000 |
commit | f89d59bbd9248215ae795ee13db911e1b37408b7 (patch) | |
tree | 51c5fcfbfb4c1bdbae866f94f33d9f95bb94cc2c /sys | |
parent | c8f1a26f8dda7f5350f6d52f5bbc4f5ec1a46cc4 (diff) | |
download | FreeBSD-src-f89d59bbd9248215ae795ee13db911e1b37408b7.zip FreeBSD-src-f89d59bbd9248215ae795ee13db911e1b37408b7.tar.gz |
Fix some references to MIN() and MAX() that have been replaced by min() and
max().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ie/if_ie.c | 2 | ||||
-rw-r--r-- | sys/dev/mse/mse.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/if_el.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/if_ie.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/if_is.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/lpt.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/mse.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index cb6b96a..d4e1155 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -1104,7 +1104,7 @@ iestart(ifp) } m_freem(m0); - len = MAX(len, ETHERMINLEN); + len = max(len, ETHERMINLEN); #if NBPFILTER > 0 /* diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c index 5f80b21..466e936 100644 --- a/sys/dev/mse/mse.c +++ b/sys/dev/mse/mse.c @@ -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; diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c index d0de274..a9033ec 100644 --- a/sys/i386/isa/if_el.c +++ b/sys/i386/isa/if_el.c @@ -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 diff --git a/sys/i386/isa/if_ie.c b/sys/i386/isa/if_ie.c index cb6b96a..d4e1155 100644 --- a/sys/i386/isa/if_ie.c +++ b/sys/i386/isa/if_ie.c @@ -1104,7 +1104,7 @@ iestart(ifp) } m_freem(m0); - len = MAX(len, ETHERMINLEN); + len = max(len, ETHERMINLEN); #if NBPFILTER > 0 /* diff --git a/sys/i386/isa/if_is.c b/sys/i386/isa/if_is.c index 9f0e6ad..2df9bb4 100644 --- a/sys/i386/isa/if_is.c +++ b/sys/i386/isa/if_is.c @@ -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. diff --git a/sys/i386/isa/lpt.c b/sys/i386/isa/lpt.c index 3317d12..88f492e 100644 --- a/sys/i386/isa/lpt.c +++ b/sys/i386/isa/lpt.c @@ -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 ; diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c index 5f80b21..466e936 100644 --- a/sys/i386/isa/mse.c +++ b/sys/i386/isa/mse.c @@ -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; |