diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 4f9b0fa57e5f..6fe60c34cf35 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -881,7 +881,7 @@ in_pcbpurgeif0(struct inpcbinfo *pcbinfo, struct ifnet *ifp) #define INP_LOOKUP_MAPPED_PCB_COST 3 struct inpcb * in_pcblookup_local(struct inpcbinfo *pcbinfo, struct in_addr laddr, - u_int lport_arg, int wild_okay) + u_short lport, int wild_okay) { struct inpcb *inp; #ifdef INET6 @@ -890,7 +890,6 @@ in_pcblookup_local(struct inpcbinfo *pcbinfo, struct in_addr laddr, int matchwild = 3; #endif int wildcard; - u_short lport = lport_arg; INP_INFO_LOCK_ASSERT(pcbinfo); diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 1e6a430b8f72..b72d1e5c2210 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -452,7 +452,7 @@ void in_pcbfree(struct inpcb *); int in_pcbinshash(struct inpcb *); struct inpcb * in_pcblookup_local(struct inpcbinfo *, - struct in_addr, u_int, int); + struct in_addr, u_short, int); struct inpcb * in_pcblookup_hash(struct inpcbinfo *, struct in_addr, u_int, struct in_addr, u_int, int, struct ifnet *); diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 85424b432637..07e54478398e 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -674,11 +674,10 @@ in6_pcbnotify(struct inpcbinfo *pcbinfo, struct sockaddr *dst, */ struct inpcb * in6_pcblookup_local(struct inpcbinfo *pcbinfo, struct in6_addr *laddr, - u_int lport_arg, int wild_okay) + u_short lport, int wild_okay) { register struct inpcb *inp; int matchwild = 3, wildcard; - u_short lport = lport_arg; INP_INFO_WLOCK_ASSERT(pcbinfo); diff --git a/sys/netinet6/in6_pcb.h b/sys/netinet6/in6_pcb.h index 211a8f97d18a..83551b58d0ca 100644 --- a/sys/netinet6/in6_pcb.h +++ b/sys/netinet6/in6_pcb.h @@ -80,7 +80,7 @@ int in6_pcbladdr __P((struct inpcb *, struct sockaddr *, struct in6_addr **)); struct inpcb * in6_pcblookup_local __P((struct inpcbinfo *, - struct in6_addr *, u_int, int)); + struct in6_addr *, u_short, int)); struct inpcb * in6_pcblookup_hash __P((struct inpcbinfo *, struct in6_addr *, u_int, struct in6_addr *,