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