summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-07-05 08:10:32 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-07-05 08:10:32 +0000
commit8cc0dd3c4a441a5e01cdcba604e2f37fcaee05f1 (patch)
tree57ba8c9d0b3c40353fc2a88354f9d8878bb9d23a /sys/kern
parent6e03cf77f835c2d3256ac5a90cb1ed70e43d9c0b (diff)
It feels a bit pointless to have:
#define sonewconn(head, connstatus) sonewconn1((head), (connstatus)) Just wastes preprocessor time.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_socket2.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c
index 4f669b00488..c8982875fd3 100644
--- a/sys/kern/uipc_socket2.c
+++ b/sys/kern/uipc_socket2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket2.c,v 1.18 2001/06/22 14:14:10 deraadt Exp $ */
+/* $OpenBSD: uipc_socket2.c,v 1.19 2001/07/05 08:10:30 art Exp $ */
/* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */
/*
@@ -149,16 +149,13 @@ soisdisconnected(so)
* then we allocate a new structure, properly linked into the
* data structure of the original socket, and return this.
* Connstatus may be 0, or SS_ISCONFIRMING, or SS_ISCONNECTED.
- *
- * Currently, sonewconn() is defined as sonewconn1() in socketvar.h
- * to catch calls that are missing the (new) second parameter.
*/
struct socket *
-sonewconn1(head, connstatus)
- register struct socket *head;
+sonewconn(head, connstatus)
+ struct socket *head;
int connstatus;
{
- register struct socket *so;
+ struct socket *so;
int soqueue = connstatus ? 1 : 0;
if (head->so_qlen + head->so_q0len > head->so_qlimit * 3)