diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2013-03-15 10:21:18 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2013-03-15 10:21:18 +0000 |
commit | c8b59ea750057908e45ccac21a2fffb4f26e39f6 (patch) | |
tree | ecddc8114093be20f249de905712462eb044319b /sys/kern/uipc_sockbuf.c | |
parent | dcba52a5f18f34897dc22deacd88e7660d4b7e5b (diff) | |
download | src-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.c | 4 |
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); |