summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2013-03-28 00:32:11 +0000
committerbluhm <bluhm@openbsd.org>2013-03-28 00:32:11 +0000
commit61e99e92ebfd22588ddf41668337b1842a7bf20e (patch)
tree8bcf28845cc148f059cf1dd914f0b4fe97eda2f6 /sys/netinet6/raw_ip6.c
parentrename define to reflect current operating system, as in sys/compat (diff)
downloadwireguard-openbsd-61e99e92ebfd22588ddf41668337b1842a7bf20e.tar.xz
wireguard-openbsd-61e99e92ebfd22588ddf41668337b1842a7bf20e.zip
Unfortunately the satosin, sintosa, ifatoia, satosin6, sin6tosa,
ifatoia6 macros do not check the source type. They just cast anything. Remove needless casts and do not use those macros if the source type does not match. Remove duplicate defines. No binary change. OK kettenis@ krw@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 75de86c75de..c5b6f394514 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.47 2013/03/14 11:18:37 mpi Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.48 2013/03/28 00:32:11 bluhm Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -121,7 +121,6 @@
#define in6_rtchange in_rtchange
struct inpcbtable rawin6pcbtable;
-#define ifatoia6(ifa) ((struct in6_ifaddr *)(ifa))
struct rip6stat rip6stat;