From 5644c29d8c22c901acbc4b8cedc4f69bd5060f7e Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Tue, 12 Apr 2016 14:42:55 +0000 Subject: Unbreak tree. Put 'laddr6' declaration inside #ifdef INET6/#endif. --- sys/netinet/in_pcb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index d2b8d2cd03b..6cf336829ba 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.203 2016/04/11 21:39:18 vgross Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.204 2016/04/12 14:42:54 krw Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -740,7 +740,9 @@ in_pcblookup_local(struct inpcbtable *table, void *laddrp, u_int lport_arg, int matchwild = 3, wildcard; u_int16_t lport = lport_arg; struct in_addr laddr = *(struct in_addr *)laddrp; +#ifdef INET6 struct in6_addr *laddr6 = (struct in6_addr *)laddrp; +#endif struct inpcbhead *head; rdomain = rtable_l2(rdomain); /* convert passed rtableid to rdomain */ -- cgit v1.2.3