summaryrefslogtreecommitdiffstats
path: root/sys/netatm/port.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2002-02-07 22:08:32 +0000
committermjacob <mjacob@FreeBSD.org>2002-02-07 22:08:32 +0000
commitf5604f20858338a28a87f06fdcc3773511f51522 (patch)
tree01004c2d76e07c971788254c912abbc9ed44cb77 /sys/netatm/port.h
parentc83077ee4a35c6e7020b59c35c463d6d0c3f64e9 (diff)
downloadFreeBSD-src-f5604f20858338a28a87f06fdcc3773511f51522.zip
FreeBSD-src-f5604f20858338a28a87f06fdcc3773511f51522.tar.gz
Replace a few more lines of code orphaned by MFREE going away.
MFC after: 1 day
Diffstat (limited to 'sys/netatm/port.h')
-rw-r--r--sys/netatm/port.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/netatm/port.h b/sys/netatm/port.h
index 911f9a2..a9daf4b 100644
--- a/sys/netatm/port.h
+++ b/sys/netatm/port.h
@@ -274,10 +274,12 @@ typedef struct mbuf KBuffer;
(prev)->m_next = (new); \
}
#define KB_UNLINKHEAD(head, next) { \
- MFREE((head), (next)); \
+ (next) = m_free((head)); \
+ (head) = NULL; \
}
#define KB_UNLINK(old, prev, next) { \
- MFREE((old), (next)); \
+ (next) = m_free((old)); \
+ (old) = NULL; \
(prev)->m_next = (next); \
}
#define KB_ISPKT(bfr) (((bfr)->m_flags & M_PKTHDR) != 0)
@@ -407,10 +409,12 @@ typedef struct mbuf KBuffer;
(prev)->m_next = (new); \
}
#define KB_UNLINKHEAD(head, next) { \
- MFREE((head), (next)); \
+ (next) = m_free((head)); \
+ (head) = NULL; \
}
#define KB_UNLINK(old, prev, next) { \
- MFREE((old), (next)); \
+ (next) = m_free((old)); \
+ (old) = NULL; \
(prev)->m_next = (next); \
}
#define KB_ISPKT(bfr) (0)
OpenPOWER on IntegriCloud