git: f6dc5aa3422a - main - unix: use private enum as argument for unp_connect2()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Aug 2022 18:52:25 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=f6dc5aa3422a980cd94562deaeb01722fdde71d3
commit f6dc5aa3422a980cd94562deaeb01722fdde71d3
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-08-17 18:50:31 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-08-17 18:50:31 +0000
unix: use private enum as argument for unp_connect2()
instead of using historic PRU_ flags that are now not used by anything
rather than TCP debugging.
---
sys/kern/uipc_usrreq.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 3b54c5f145be..eb6404c86320 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -293,7 +293,8 @@ static int unp_connect(struct socket *, struct sockaddr *,
struct thread *);
static int unp_connectat(int, struct socket *, struct sockaddr *,
struct thread *, bool);
-static void unp_connect2(struct socket *so, struct socket *so2, int);
+typedef enum { PRU_CONNECT, PRU_CONNECT2 } conn2_how;
+static void unp_connect2(struct socket *so, struct socket *so2, conn2_how);
static void unp_disconnect(struct unpcb *unp, struct unpcb *unp2);
static void unp_dispose(struct socket *so);
static void unp_shutdown(struct unpcb *);
@@ -2151,7 +2152,7 @@ unp_copy_peercred(struct thread *td, struct unpcb *client_unp,
}
static void
-unp_connect2(struct socket *so, struct socket *so2, int req)
+unp_connect2(struct socket *so, struct socket *so2, conn2_how req)
{
struct unpcb *unp;
struct unpcb *unp2;