summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-02-10 08:47:38 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-02-10 08:47:38 +0000
commitf597e33d9e476336d0df7f5880c28638ed8c1884 (patch)
tree1a29e5226ae7374ab9332996ede5e566e7983acf /sys
parent3e4c9cf00e751acd4fe70592e72151593f9c7140 (diff)
Kill unneeded caddr_t cast.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/in.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 3651c120af8..24f8b4ca5d2 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.145 2018/02/10 05:32:21 claudio Exp $ */
+/* $OpenBSD: in.c,v 1.146 2018/02/10 08:47:37 claudio Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -650,7 +650,7 @@ in_up_loopback(struct ifnet *ifp)
in_socktrim(&ia->ia_sockmask);
/* Now insert a reject route for 127.0.0.0/8 */
- bzero((caddr_t)&info, sizeof(info));
+ bzero(&info, sizeof(info));
info.rti_flags = RTF_GATEWAY | RTF_REJECT | RTF_STATIC;
info.rti_ifa = &ia->ia_ifa;
info.rti_info[RTAX_DST] = ia->ia_ifa.ifa_addr;