summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-07-10 13:23:22 +0000
committerbz <bz@FreeBSD.org>2008-07-10 13:23:22 +0000
commit4b9bb0069f0a7dd4fc5ebacc519965f51c558c9d (patch)
treeaf9a4ef7ced0560538ff6f05544b71f50d2a47c6 /sys/netinet
parentb35e10e860cd9d4a3a80e3cdae706928a3545cda (diff)
downloadFreeBSD-src-4b9bb0069f0a7dd4fc5ebacc519965f51c558c9d.zip
FreeBSD-src-4b9bb0069f0a7dd4fc5ebacc519965f51c558c9d.tar.gz
For consistency take lport as u_short in in{,6}_pcblookup_local.
All callers either pass in an u_short or u_int16_t. Reviewed by: rwatson
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_pcb.c3
-rw-r--r--sys/netinet/in_pcb.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 4f9b0fa..6fe60c3 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 1e6a430..b72d1e5 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 *);
OpenPOWER on IntegriCloud