MIN --> min

This commit is contained in:
mycroft 1994-05-24 07:31:12 +00:00
parent f90fda8fd6
commit a9376b883a
5 changed files with 12 additions and 12 deletions

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.6 1994/03/08 12:21:16 mycroft Exp $
* $Id: cy.c,v 1.7 1994/05/24 07:31:12 mycroft Exp $
*/
/*
@ -916,7 +916,7 @@ service_tx(int cd, caddr_t base)
if (txq->used > 0) {
cy_addr base = ip->base_addr;
int count = MIN(CD1400_FIFOSIZE, txq->used);
int count = min(CD1400_FIFOSIZE, txq->used);
int chars_done = count;
u_char *cp = txq->head;
u_char *buf_end = txq->endish;
@ -946,7 +946,7 @@ service_tx(int cd, caddr_t base)
if (!(tp->t_state & TS_TTSTOP) && (tp->t_outq.c_cc > 0)) {
cy_addr base = ip->base_addr;
int count = MIN(CD1400_FIFOSIZE, tp->t_outq.c_cc);
int count = min(CD1400_FIFOSIZE, tp->t_outq.c_cc);
ip->xmit += count;
tp->t_state |= TS_BUSY;

View File

@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_ep.c,v 1.38 1994/05/21 05:34:02 deraadt Exp $
* $Id: if_ep.c,v 1.39 1994/05/24 07:31:14 mycroft Exp $
*/
#include "bpfilter.h"
@ -599,7 +599,7 @@ epintr(sc)
printf("%s: fifo underrun (%x %x), correcting\n",
sc->sc_dev.dv_xname, status, i);
if (sc->tx_succ_ok < 100)
sc->tx_start_thresh = MIN(ETHER_MAX_LEN,
sc->tx_start_thresh = min(ETHER_MAX_LEN,
sc->tx_start_thresh + 20);
sc->tx_succ_ok = 0;
epreset(sc);

View File

@ -6,7 +6,7 @@
* 386bsd only clean version, all SYSV stuff removed
* use hz value from param.c
*
* $Id: spkr.c,v 1.13 1994/04/24 04:44:16 mycroft Exp $
* $Id: spkr.c,v 1.14 1994/05/24 07:31:16 mycroft Exp $
*/
#include "speaker.h"
@ -438,7 +438,7 @@ struct uio *uio;
return(ENXIO);
else
{
n = MIN(DEV_BSIZE, uio->uio_resid);
n = min(DEV_BSIZE, uio->uio_resid);
cp = spkr_inbuf->b_un.b_addr;
error = uiomove(cp, n, uio);
if (!error)

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.6 1994/03/08 12:21:16 mycroft Exp $
* $Id: cy.c,v 1.7 1994/05/24 07:31:12 mycroft Exp $
*/
/*
@ -916,7 +916,7 @@ service_tx(int cd, caddr_t base)
if (txq->used > 0) {
cy_addr base = ip->base_addr;
int count = MIN(CD1400_FIFOSIZE, txq->used);
int count = min(CD1400_FIFOSIZE, txq->used);
int chars_done = count;
u_char *cp = txq->head;
u_char *buf_end = txq->endish;
@ -946,7 +946,7 @@ service_tx(int cd, caddr_t base)
if (!(tp->t_state & TS_TTSTOP) && (tp->t_outq.c_cc > 0)) {
cy_addr base = ip->base_addr;
int count = MIN(CD1400_FIFOSIZE, tp->t_outq.c_cc);
int count = min(CD1400_FIFOSIZE, tp->t_outq.c_cc);
ip->xmit += count;
tp->t_state |= TS_BUSY;

View File

@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_ep.c,v 1.38 1994/05/21 05:34:02 deraadt Exp $
* $Id: if_ep.c,v 1.39 1994/05/24 07:31:14 mycroft Exp $
*/
#include "bpfilter.h"
@ -599,7 +599,7 @@ epintr(sc)
printf("%s: fifo underrun (%x %x), correcting\n",
sc->sc_dev.dv_xname, status, i);
if (sc->tx_succ_ok < 100)
sc->tx_start_thresh = MIN(ETHER_MAX_LEN,
sc->tx_start_thresh = min(ETHER_MAX_LEN,
sc->tx_start_thresh + 20);
sc->tx_succ_ok = 0;
epreset(sc);