diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-08-17 18:50:31 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-08-17 18:50:31 +0000 |
commit | f6dc5aa3422a980cd94562deaeb01722fdde71d3 (patch) | |
tree | fad0493e15ecd4103f0ed8f3d24ca35e758d3b7d | |
parent | aea0cd0432f0bb21f78ed7dbf44a64d0cd05c941 (diff) | |
download | src-f6dc5aa3422a980cd94562deaeb01722fdde71d3.tar.gz src-f6dc5aa3422a980cd94562deaeb01722fdde71d3.zip |
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.
-rw-r--r-- | sys/kern/uipc_usrreq.c | 5 |
1 files 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; |