summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-02-20 15:56:13 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-02-20 15:56:13 +0000
commit2b85a170d195770bf1e34cde3822534217ebf1fd (patch)
tree14d228b04b5f3bb6c79e1b16f57281914bea8de9 /sys/kern/uipc_sockbuf.c
parenta00428ef92c0cd7808fdd0169366fd51f893c29d (diff)
Notes
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r--sys/kern/uipc_sockbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index 91f152edf42f..c7a922de976b 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -223,10 +223,10 @@ sonewconn(head, connstatus)
over = (head->so_qlen > 3 * head->so_qlimit / 2);
ACCEPT_UNLOCK();
if (over)
- return ((struct socket *)0);
+ return (NULL);
so = soalloc(M_NOWAIT);
if (so == NULL)
- return ((struct socket *)0);
+ return (NULL);
if ((head->so_options & SO_ACCEPTFILTER) != 0)
connstatus = 0;
so->so_head = head;
@@ -247,7 +247,7 @@ sonewconn(head, connstatus)
if (soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat) ||
(*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL)) {
sodealloc(so);
- return ((struct socket *)0);
+ return (NULL);
}
so->so_state |= connstatus;
ACCEPT_LOCK();