aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-03-15 10:21:18 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-03-15 10:21:18 +0000
commitc8b59ea750057908e45ccac21a2fffb4f26e39f6 (patch)
treeecddc8114093be20f249de905712462eb044319b /sys/kern/uipc_sockbuf.c
parentdcba52a5f18f34897dc22deacd88e7660d4b7e5b (diff)
downloadsrc-c8b59ea750057908e45ccac21a2fffb4f26e39f6.tar.gz
src-c8b59ea750057908e45ccac21a2fffb4f26e39f6.zip
Use m_get() and m_getcl() instead of compat macros.
Notes
Notes: svn path=/head/; revision=248318
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 6325840d4662..93c96bfdabb8 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);