From 2a406c587e49c2f0b44860d598b3cc58f09701cb Mon Sep 17 00:00:00 2001 From: Florian Obser Date: Sat, 17 Sep 2016 09:37:20 +0000 Subject: iov_base is already set in this case; reduce diff to ping6(8). --- sbin/ping/ping.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sbin/ping/ping.c') diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 2b63c3a43b1..2a42fb62a24 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping.c,v 1.203 2016/09/17 09:36:42 florian Exp $ */ +/* $OpenBSD: ping.c,v 1.204 2016/09/17 09:37:19 florian Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -903,8 +903,7 @@ pinger(int s) cc += sizeof(struct ip); ip->ip_len = htons(cc); ip->ip_sum = in_cksum((u_short *)outpackhdr, cc); - } else - smsgiov.iov_base = (caddr_t)outpack; + } smsgiov.iov_len = cc; -- cgit v1.2.3