From 1682209d2280b7c51c61607fe7cb5e272b7ded92 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 28 Mar 2013 00:32:12 +0000 Subject: 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@ --- sys/netinet6/ip6_output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/netinet6/ip6_output.c') diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 9ec2f19239d..e74556151f1 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_output.c,v 1.135 2013/03/20 10:34:12 mpi Exp $ */ +/* $OpenBSD: ip6_output.c,v 1.136 2013/03/28 00:32:11 bluhm Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -2116,7 +2116,6 @@ ip6_initpktopts(struct ip6_pktopts *opt) opt->ip6po_minmtu = IP6PO_MINMTU_MCASTONLY; } -#define sin6tosa(sin6) ((struct sockaddr *)(sin6)) /* XXX */ int ip6_pcbopt(int optname, u_char *buf, int len, struct ip6_pktopts **pktopt, int priv, int uproto) -- cgit v1.2.3