From 7f28cf7f942283efa615eb75bb7966088fdbccae Mon Sep 17 00:00:00 2001 From: claudio Date: Sat, 10 Feb 2018 08:47:37 +0000 Subject: [PATCH] Kill unneeded caddr_t cast. --- sys/netinet/in.c | 4 ++-- 1 file 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; -- 2.20.1