aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2002-02-07 08:39:26 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2002-02-07 08:39:26 +0000
commit2a62c7174a7bf37e87d6b20fe2cd9e0777228c8b (patch)
tree9e25d96792617afe802fa670ded57cad05c9744c /sys
parent273b222cdb19c9c35afdead0142e9d195ab169e4 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/tc/am7990.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/alpha/tc/am7990.c b/sys/alpha/tc/am7990.c
index 4ec33fcd722e0..8a40fe22fd453 100644
--- a/sys/alpha/tc/am7990.c
+++ b/sys/alpha/tc/am7990.c
@@ -436,6 +436,7 @@ am7990_init(sc)
* Routine to copy from mbuf chain to transmit buffer in
* network buffer memory.
*/
+
integrate int
am7990_put(sc, boff, m)
struct am7990_softc *sc;
@@ -448,13 +449,15 @@ am7990_put(sc, boff, m)
for (; m; m = n) {
len = m->m_len;
if (len == 0) {
- MFREE(m, n);
+ n = m_free(m);
+ m = NULL;
continue;
}
(*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len);
boff += len;
tlen += len;
- MFREE(m, n);
+ n = m_free(m);
+ m = NULL;
}
if (tlen < LEMINSIZE) {
(*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen);
@@ -969,7 +972,7 @@ am7990_ioctl(ifp, cmd, data)
#ifdef INET
case AF_INET:
am7990_init(sc);
- arp_ifinit((struct arpcom *)ifp, ifa);
+ arp_ifinit((void *)ifp, ifa);
break;
#endif
#ifdef NS