summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2012-12-31 13:46:50 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2012-12-31 13:46:50 +0000
commit478aefa77276fa6aba612d47ca2e50d7173e2109 (patch)
tree78092cce6a17d84059e09904872d0686c9d39460 /sys/kern
parentdb5c4ca34559582b057d407858cf99546e09419a (diff)
Put the #ifdef SOCKBUF_DEBUG around sbcheck() into a SBCHECK macro.
That is consistent to the SBLASTRECORDCHK and SBLASTMBUFCHK macros. OK markus@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_socket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 9972abca17b..62ea6679b9c 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.109 2012/10/05 01:30:28 yasuoka Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.110 2012/12/31 13:46:49 bluhm Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -1230,9 +1230,7 @@ somove(struct socket *so, int wait)
SBLASTRECORDCHK(&so->so_rcv, "somove");
SBLASTMBUFCHK(&so->so_rcv, "somove");
KASSERT(so->so_rcv.sb_mb == so->so_rcv.sb_lastrecord);
-#ifdef SOCKBUF_DEBUG
- sbcheck(&so->so_rcv);
-#endif
+ SBCHECK(&so->so_rcv);
/* m might be NULL if the loop did break during the first iteration. */
if (m == NULL)