From bd38c5f41f536e9f6437eb4d46684b205ab21ee3 Mon Sep 17 00:00:00 2001 From: mvs Date: Thu, 13 May 2021 18:06:54 +0000 Subject: [PATCH] Use NULL instead of 0 for mbuf(9) pointers. ok millert@ --- sys/kern/uipc_socket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 2859b932c20..1dd03615ce0 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket.c,v 1.259 2021/05/01 16:13:12 mvs Exp $ */ +/* $OpenBSD: uipc_socket.c,v 1.260 2021/05/13 18:06:54 mvs Exp $ */ /* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */ /* @@ -503,7 +503,7 @@ restart: if (so->so_proto->pr_flags & PR_CONNREQUIRED) { if (!(resid == 0 && clen != 0)) snderr(ENOTCONN); - } else if (addr == 0) + } else if (addr == NULL) snderr(EDESTADDRREQ); } space = sbspace(so, &so->so_snd); @@ -847,7 +847,7 @@ dontblock: if (paddr) { *paddr = m; so->so_rcv.sb_mb = m->m_next; - m->m_next = 0; + m->m_next = NULL; m = so->so_rcv.sb_mb; } else { so->so_rcv.sb_mb = m_free(m); -- 2.20.1