diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2022-10-17 14:49:03 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2022-10-17 14:49:03 +0000 |
commit | 6df1ab8d120cb4c59dd442a169998af32cc6acf4 (patch) | |
tree | f80cacefb3bb6231f1bef791ea0de583087614f5 /sys/netinet/tcp_var.h | |
parent | ec7a17806a64a7084a79bc6b28e404fa3022af01 (diff) |
Change pru_abort() return type to the type of void and make pru_abort()
optional.
We have no interest on pru_abort() return value. We call it only from
soabort() which is dummy pru_abort() wrapper and has no return value.
Only the connection oriented sockets need to implement (*pru_abort)()
handler. Such sockets are tcp(4) and unix(4) sockets, so remove existing
code for all others, it doesn't called.
ok guenther@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 430bc561f5b..d9630b0c58c 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_var.h,v 1.159 2022/10/03 16:43:52 bluhm Exp $ */ +/* $OpenBSD: tcp_var.h,v 1.160 2022/10/17 14:49:02 mvs Exp $ */ /* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */ /* @@ -728,7 +728,7 @@ int tcp_shutdown(struct socket *); void tcp_rcvd(struct socket *); int tcp_send(struct socket *, struct mbuf *, struct mbuf *, struct mbuf *); -int tcp_abort(struct socket *); +void tcp_abort(struct socket *); int tcp_sockaddr(struct socket *, struct mbuf *); int tcp_peeraddr(struct socket *, struct mbuf *); int tcp_sense(struct socket *, struct stat *); |