From a90c7373aaaceb927dae778c21f5ac3af2c018c5 Mon Sep 17 00:00:00 2001 From: mvs Date: Thu, 11 Feb 2021 20:28:57 +0000 Subject: [PATCH] sbdrop(): use NULL instead of 0 in pointer assignment ok bluhm@ --- sys/kern/uipc_socket2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 27887c815f9..0d9bd20ed36 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.105 2021/02/10 08:20:09 mvs Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.106 2021/02/11 20:28:57 mvs Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -973,7 +973,7 @@ sbdrop(struct socket *so, struct sockbuf *sb, int len) KASSERT(sb == &so->so_rcv || sb == &so->so_snd); soassertlocked(so); - next = (m = sb->sb_mb) ? m->m_nextpkt : 0; + next = (m = sb->sb_mb) ? m->m_nextpkt : NULL; while (len > 0) { if (m == NULL) { if (next == NULL) -- 2.20.1