mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 09:30:41 +00:00
Remove unused argument.
Reviewed by: ume
This commit is contained in:
parent
60a6006b6c
commit
6823b82399
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127504
|
@ -155,10 +155,9 @@ SYSCTL_INT(_net_inet_ip_portrange, OID_AUTO, reservedlow,
|
|||
* Allocate a PCB and associate it with the socket.
|
||||
*/
|
||||
int
|
||||
in_pcballoc(so, pcbinfo, td, type)
|
||||
in_pcballoc(so, pcbinfo, type)
|
||||
struct socket *so;
|
||||
struct inpcbinfo *pcbinfo;
|
||||
struct thread *td;
|
||||
const char *type;
|
||||
{
|
||||
register struct inpcb *inp;
|
||||
|
|
|
@ -337,8 +337,7 @@ extern int ipport_hifirstauto;
|
|||
extern int ipport_hilastauto;
|
||||
|
||||
void in_pcbpurgeif0(struct inpcbinfo *, struct ifnet *);
|
||||
int in_pcballoc(struct socket *, struct inpcbinfo *, struct thread *,
|
||||
const char *);
|
||||
int in_pcballoc(struct socket *, struct inpcbinfo *, const char *);
|
||||
int in_pcbbind(struct inpcb *, struct sockaddr *, struct thread *);
|
||||
int in_pcbbind_setup(struct inpcb *, struct sockaddr *, in_addr_t *,
|
||||
u_short *, struct thread *);
|
||||
|
|
|
@ -420,7 +420,7 @@ div_attach(struct socket *so, int proto, struct thread *td)
|
|||
INP_INFO_WUNLOCK(&divcbinfo);
|
||||
return error;
|
||||
}
|
||||
error = in_pcballoc(so, &divcbinfo, td, "divinp");
|
||||
error = in_pcballoc(so, &divcbinfo, "divinp");
|
||||
if (error) {
|
||||
INP_INFO_WUNLOCK(&divcbinfo);
|
||||
return error;
|
||||
|
|
|
@ -536,7 +536,7 @@ rip_attach(struct socket *so, int proto, struct thread *td)
|
|||
INP_INFO_WUNLOCK(&ripcbinfo);
|
||||
return error;
|
||||
}
|
||||
error = in_pcballoc(so, &ripcbinfo, td, "rawinp");
|
||||
error = in_pcballoc(so, &ripcbinfo, "rawinp");
|
||||
if (error) {
|
||||
INP_INFO_WUNLOCK(&ripcbinfo);
|
||||
return error;
|
||||
|
|
|
@ -1203,7 +1203,7 @@ tcp_attach(so, td)
|
|||
if (error)
|
||||
return (error);
|
||||
}
|
||||
error = in_pcballoc(so, &tcbinfo, td, "tcpinp");
|
||||
error = in_pcballoc(so, &tcbinfo, "tcpinp");
|
||||
if (error)
|
||||
return (error);
|
||||
inp = sotoinpcb(so);
|
||||
|
|
|
@ -940,7 +940,7 @@ udp_attach(struct socket *so, int proto, struct thread *td)
|
|||
return error;
|
||||
}
|
||||
s = splnet();
|
||||
error = in_pcballoc(so, &udbinfo, td, "udpinp");
|
||||
error = in_pcballoc(so, &udbinfo, "udpinp");
|
||||
splx(s);
|
||||
if (error) {
|
||||
INP_INFO_WUNLOCK(&udbinfo);
|
||||
|
|
|
@ -561,7 +561,7 @@ rip6_attach(struct socket *so, int proto, struct thread *td)
|
|||
if (error)
|
||||
return error;
|
||||
s = splnet();
|
||||
error = in_pcballoc(so, &ripcbinfo, td, "raw6inp");
|
||||
error = in_pcballoc(so, &ripcbinfo, "raw6inp");
|
||||
splx(s);
|
||||
if (error)
|
||||
return error;
|
||||
|
|
|
@ -526,7 +526,7 @@ udp6_attach(struct socket *so, int proto, struct thread *td)
|
|||
return error;
|
||||
}
|
||||
s = splnet();
|
||||
error = in_pcballoc(so, &udbinfo, td, "udp6inp");
|
||||
error = in_pcballoc(so, &udbinfo, "udp6inp");
|
||||
splx(s);
|
||||
if (error)
|
||||
return error;
|
||||
|
|
Loading…
Reference in a new issue