From c352e6979dcd8d52ed297a162e899ae3c8f3fe04 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 18 Feb 2019 10:04:53 +0100 Subject: C++ compatibility for some kernel-space headers --- freebsd/sys/sys/mbuf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'freebsd/sys/sys/mbuf.h') diff --git a/freebsd/sys/sys/mbuf.h b/freebsd/sys/sys/mbuf.h index 0423b580..634f7d9e 100644 --- a/freebsd/sys/sys/mbuf.h +++ b/freebsd/sys/sys/mbuf.h @@ -776,7 +776,7 @@ m_get(int how, short type) args.flags = 0; args.type = type; - m = uma_zalloc_arg(zone_mbuf, &args, how); + m = (struct mbuf *)uma_zalloc_arg(zone_mbuf, &args, how); MBUF_PROBE3(m__get, how, type, m); return (m); } @@ -789,7 +789,7 @@ m_gethdr(int how, short type) args.flags = M_PKTHDR; args.type = type; - m = uma_zalloc_arg(zone_mbuf, &args, how); + m = (struct mbuf *)uma_zalloc_arg(zone_mbuf, &args, how); MBUF_PROBE3(m__gethdr, how, type, m); return (m); } @@ -802,7 +802,7 @@ m_getcl(int how, short type, int flags) args.flags = flags; args.type = type; - m = uma_zalloc_arg(zone_pack, &args, how); + m = (struct mbuf *)uma_zalloc_arg(zone_pack, &args, how); MBUF_PROBE4(m__getcl, how, type, flags, m); return (m); } -- cgit v1.2.3