MAX -> max, MIN -> min
authorAkito Fujita <aki@ucbvax.Berkeley.EDU>
Tue, 14 Jul 1992 09:05:41 +0000 (01:05 -0800)
committerAkito Fujita <aki@ucbvax.Berkeley.EDU>
Tue, 14 Jul 1992 09:05:41 +0000 (01:05 -0800)
SCCS-vsn: sys/luna68k/dev/sc.c 7.2
SCCS-vsn: sys/luna68k/dev/sd.c 7.2
SCCS-vsn: sys/luna68k/dev/st.c 7.2

usr/src/sys/luna68k/dev/sc.c
usr/src/sys/luna68k/dev/sd.c
usr/src/sys/luna68k/dev/st.c

index cda57dc..857f54a 100644 (file)
@@ -8,7 +8,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)sc.c        7.1 (Berkeley) %G%
+ *     @(#)sc.c        7.2 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -751,8 +751,8 @@ scintr(ctlr)
                if (dq->dq_imin == -1)
                        dq->dq_imin = wait;
                else
                if (dq->dq_imin == -1)
                        dq->dq_imin = wait;
                else
-                       dq->dq_imin = MIN(wait, dq->dq_imin);
-               dq->dq_imax = MAX(wait, dq->dq_imax);
+                       dq->dq_imin = min(wait, dq->dq_imin);
+               dq->dq_imax = max(wait, dq->dq_imax);
        } else {
                if ((wait = ixfer_out(hd, len, buf)) == -1) {
                        goto time_out;
        } else {
                if ((wait = ixfer_out(hd, len, buf)) == -1) {
                        goto time_out;
@@ -760,8 +760,8 @@ scintr(ctlr)
                if (dq->dq_omin == -1)
                        dq->dq_omin = wait;
                else 
                if (dq->dq_omin == -1)
                        dq->dq_omin = wait;
                else 
-                       dq->dq_omin = MIN(wait, dq->dq_omin);
-               dq->dq_omax = MAX(wait, dq->dq_omax);
+                       dq->dq_omin = min(wait, dq->dq_omin);
+               dq->dq_omax = max(wait, dq->dq_omax);
        }
 
        return;
        }
 
        return;
index 1e6c851..de246b4 100644 (file)
@@ -8,7 +8,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)sd.c        7.1 (Berkeley) %G%
+ *     @(#)sd.c        7.2 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -430,7 +430,7 @@ sdintr(unit, stat)
        }
 
        if (bp->b_flags & B_READ) {
        }
 
        if (bp->b_flags & B_READ) {
-               sd_iostat[unit].imin = MIN(dq->dq_imin, sd_iostat[unit].imin);
+               sd_iostat[unit].imin = min(dq->dq_imin, sd_iostat[unit].imin);
                if (dq->dq_imax > sd_iostat[unit].imax) {
                        sd_iostat[unit].imax = dq->dq_imax;
 #ifdef SD_IOSTAT
                if (dq->dq_imax > sd_iostat[unit].imax) {
                        sd_iostat[unit].imax = dq->dq_imax;
 #ifdef SD_IOSTAT
@@ -439,7 +439,7 @@ sdintr(unit, stat)
 #endif
                }
        } else {
 #endif
                }
        } else {
-               sd_iostat[unit].omin = MIN(dq->dq_omin, sd_iostat[unit].omin);
+               sd_iostat[unit].omin = min(dq->dq_omin, sd_iostat[unit].omin);
                if (dq->dq_omax > sd_iostat[unit].omax) {
                        sd_iostat[unit].omax = dq->dq_omax;
 #ifdef SD_IOSTAT
                if (dq->dq_omax > sd_iostat[unit].omax) {
                        sd_iostat[unit].omax = dq->dq_omax;
 #ifdef SD_IOSTAT
index 2122a86..2b32602 100644 (file)
@@ -8,7 +8,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)st.c        7.1 (Berkeley) %G%
+ *     @(#)st.c        7.2 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -394,7 +394,7 @@ stintr(unit, stat)
        int slave = dq->dq_slave;
 
        if (bp->b_flags & B_READ) {
        int slave = dq->dq_slave;
 
        if (bp->b_flags & B_READ) {
-               st_iostat[unit].imin = MIN(dq->dq_imin, st_iostat[unit].imin);
+               st_iostat[unit].imin = min(dq->dq_imin, st_iostat[unit].imin);
                if (dq->dq_imax > st_iostat[unit].imax) {
                        st_iostat[unit].imax = dq->dq_imax;
 #ifdef ST_IOSTAT
                if (dq->dq_imax > st_iostat[unit].imax) {
                        st_iostat[unit].imax = dq->dq_imax;
 #ifdef ST_IOSTAT
@@ -403,7 +403,7 @@ stintr(unit, stat)
 #endif
                }
        } else {
 #endif
                }
        } else {
-               st_iostat[unit].omin = MIN(dq->dq_omin, st_iostat[unit].omin);
+               st_iostat[unit].omin = min(dq->dq_omin, st_iostat[unit].omin);
                if (dq->dq_omax > st_iostat[unit].omax) {
                        st_iostat[unit].omax = dq->dq_omax;
 #ifdef ST_IOSTAT
                if (dq->dq_omax > st_iostat[unit].omax) {
                        st_iostat[unit].omax = dq->dq_omax;
 #ifdef ST_IOSTAT