From 79e7e937bd59ba8c4caaa08963712df2506adf8b Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 17 Feb 2012 14:39:30 +0100 Subject: slirp: Clean up ifs_init Remove duplicate ifs_init macros, reimplement the logic as static inline in mbuf.h. CC: Zhi Yong Wu CC: Michael S. Tsirkin Signed-off-by: Jan Kiszka --- slirp/mbuf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'slirp/mbuf.h') diff --git a/slirp/mbuf.h b/slirp/mbuf.h index 0708840f04..8d7951fb42 100644 --- a/slirp/mbuf.h +++ b/slirp/mbuf.h @@ -124,4 +124,9 @@ void m_adj(struct mbuf *, int); int m_copy(struct mbuf *, struct mbuf *, int, int); struct mbuf * dtom(Slirp *, void *); +static inline void ifs_init(struct mbuf *ifm) +{ + ifm->ifs_next = ifm->ifs_prev = ifm; +} + #endif -- cgit v1.2.3