use min not MIN()
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Tue, 28 Jul 1992 12:18:33 +0000 (04:18 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Tue, 28 Jul 1992 12:18:33 +0000 (04:18 -0800)
SCCS-vsn: sys/pmax/dev/if_le.c 7.5

usr/src/sys/pmax/dev/if_le.c

index 3c47239..bc25a76 100644 (file)
@@ -7,7 +7,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)if_le.c     7.4 (Berkeley) %G%
+ *     @(#)if_le.c     7.5 (Berkeley) %G%
  */
 
 #include "le.h"
  */
 
 #include "le.h"
@@ -808,7 +808,7 @@ leget(lebuf, totlen, off, ifp)
                if (resid >= MINCLSIZE)
                        MCLGET(m, M_DONTWAIT);
                if (m->m_flags & M_EXT)
                if (resid >= MINCLSIZE)
                        MCLGET(m, M_DONTWAIT);
                if (m->m_flags & M_EXT)
-                       m->m_len = MIN(resid, MCLBYTES);
+                       m->m_len = min(resid, MCLBYTES);
                else if (resid < m->m_len) {
                        /*
                         * Place initial small packet/header at end of mbuf.
                else if (resid < m->m_len) {
                        /*
                         * Place initial small packet/header at end of mbuf.