diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-03-28 00:32:12 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-03-28 00:32:12 +0000 |
commit | 1682209d2280b7c51c61607fe7cb5e272b7ded92 (patch) | |
tree | 8fcd2b6f34fdee653fb7dc1f67f9c6884376de1c /sys/netinet/in_pcb.c | |
parent | ef334395d0445f4d18ee8bba08b4532efdca84fc (diff) |
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/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 0ebac884c68..cc83efeafbf 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.131 2013/02/05 19:09:52 bluhm Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.132 2013/03/28 00:32:11 bluhm Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -810,7 +810,7 @@ in_selectsrc(struct sockaddr_in *sin, struct route *ro, int soopts, *errorp = EADDRNOTAVAIL; return NULL; } - return satosin(&ia->ia_addr); + return (&ia->ia_addr); } } /* @@ -863,7 +863,7 @@ in_selectsrc(struct sockaddr_in *sin, struct route *ro, int soopts, return NULL; } } - return satosin(&ia->ia_addr); + return (&ia->ia_addr); } void |