remove unused sonam arg to unp_connect2
[unix-history] / usr / src / sys / kern / uipc_usrreq.c
index 2fc8b7b..6b63703 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)uipc_usrreq.c       6.19 (Berkeley) %G%
+ *     @(#)uipc_usrreq.c       6.20 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -79,8 +79,7 @@ uipc_usrreq(so, req, m, nam, rights)
                break;
 
        case PRU_CONNECT2:
                break;
 
        case PRU_CONNECT2:
-               error = unp_connect2(so, (struct mbuf *)0,
-                   (struct socket *)nam);
+               error = unp_connect2(so, (struct socket *)nam);
                break;
 
        case PRU_DISCONNECT:
                break;
 
        case PRU_DISCONNECT:
@@ -405,15 +404,14 @@ unp_connect(so, nam)
                error = ECONNREFUSED;
                goto bad;
        }
                error = ECONNREFUSED;
                goto bad;
        }
-       error = unp_connect2(so, nam, so2);
+       error = unp_connect2(so, so2);
 bad:
        iput(ip);
        return (error);
 }
 
 bad:
        iput(ip);
        return (error);
 }
 
-unp_connect2(so, sonam, so2)
+unp_connect2(so, so2)
        register struct socket *so;
        register struct socket *so;
-       struct mbuf *sonam;
        register struct socket *so2;
 {
        register struct unpcb *unp = sotounpcb(so);
        register struct socket *so2;
 {
        register struct unpcb *unp = sotounpcb(so);