summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
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/netinet6
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/netinet6')
-rw-r--r--sys/netinet6/in6_pcb.c3
-rw-r--r--sys/netinet6/in6_pcb.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 85424b4..07e5447 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 211a8f9..83551b5 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 *,
OpenPOWER on IntegriCloud