X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..e3027f41d0120b4278cca462f397b6619dcd9ac5:/bsd/kern/uipc_syscalls.c diff --git a/bsd/kern/uipc_syscalls.c b/bsd/kern/uipc_syscalls.c index f27ada463..d6482c0a2 100644 --- a/bsd/kern/uipc_syscalls.c +++ b/bsd/kern/uipc_syscalls.c @@ -283,7 +283,7 @@ accept1(p, uap, retval, compat) splx(s); return (EWOULDBLOCK); } - while (head->so_comp.tqh_first == NULL && head->so_error == 0) { + while (TAILQ_EMPTY(&head->so_comp) && head->so_error == 0) { if (head->so_state & SS_CANTRCVMORE) { head->so_error = ECONNABORTED; break; @@ -310,7 +310,7 @@ accept1(p, uap, retval, compat) * block allowing another process to accept the connection * instead. */ - so = head->so_comp.tqh_first; + so = TAILQ_FIRST(&head->so_comp); TAILQ_REMOVE(&head->so_comp, so, so_list); head->so_qlen--;