summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-03-15 10:21:18 +0000
committerglebius <glebius@FreeBSD.org>2013-03-15 10:21:18 +0000
commita10c1a7c72239c6be42dd7e90417b5caef91c8c7 (patch)
treeecddc8114093be20f249de905712462eb044319b /sys/kern/uipc_sockbuf.c
parentf1574e6b22a8e4c942bcaa09c0a3559a9a7e82ee (diff)
downloadFreeBSD-src-a10c1a7c72239c6be42dd7e90417b5caef91c8c7.zip
FreeBSD-src-a10c1a7c72239c6be42dd7e90417b5caef91c8c7.tar.gz
Use m_get() and m_getcl() instead of compat macros.
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r--sys/kern/uipc_sockbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index 6325840..93c96bf 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -644,8 +644,8 @@ sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa,
if (asa->sa_len > MLEN)
return (0);
#endif
- MGET(m, M_NOWAIT, MT_SONAME);
- if (m == 0)
+ m = m_get(M_NOWAIT, MT_SONAME);
+ if (m == NULL)
return (0);
m->m_len = asa->sa_len;
bcopy(asa, mtod(m, caddr_t), asa->sa_len);
OpenPOWER on IntegriCloud