From 78e4ad2f849f753652dc0f869395f5cef76bccaa Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Wed, 19 Mar 2014 20:36:12 +0800 Subject: [PATCH] in6_pcblookup_local: Make in6_addr const --- sys/netinet6/in6_pcb.c | 2 +- sys/netinet6/in6_pcb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index de80b86fd3..f9a45256ae 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -998,7 +998,7 @@ do_notify: * Lookup a PCB based on the local address and port. */ struct inpcb * -in6_pcblookup_local(struct inpcbinfo *pcbinfo, struct in6_addr *laddr, +in6_pcblookup_local(struct inpcbinfo *pcbinfo, const struct in6_addr *laddr, u_int lport_arg, int wild_okay, struct ucred *cred) { struct inpcb *inp; diff --git a/sys/netinet6/in6_pcb.h b/sys/netinet6/in6_pcb.h index a2c47e9fe4..ef64f1ed28 100644 --- a/sys/netinet6/in6_pcb.h +++ b/sys/netinet6/in6_pcb.h @@ -106,7 +106,7 @@ void in6_pcbdisconnect (struct inpcb *); int in6_pcbladdr (struct inpcb *, struct sockaddr *, struct in6_addr **, struct thread *); struct inpcb * - in6_pcblookup_local (struct inpcbinfo *, struct in6_addr *, u_int, + in6_pcblookup_local (struct inpcbinfo *, const struct in6_addr *, u_int, int, struct ucred *); struct inpcb * in6_pcblookup_hash (struct inpcbinfo *, -- 2.41.0