summaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-08-14 17:46:10 +0000
committerstefanf <stefanf@FreeBSD.org>2004-08-14 17:46:10 +0000
commitbcdeb8e73ca7fe84a2caa06a504cae1e779e25af (patch)
treebe6242cdf28f91c19a82810c41a57128a3771413 /sbin/ping
parentc7e2313e865d292a348f00799e7c73cb552cda10 (diff)
downloadFreeBSD-src-bcdeb8e73ca7fe84a2caa06a504cae1e779e25af.zip
FreeBSD-src-bcdeb8e73ca7fe84a2caa06a504cae1e779e25af.tar.gz
Avoid using void pointers in additive expressions.
PR: 56653
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 12b8dad..d312721 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -947,7 +947,7 @@ pr_pack(buf, cc, from, tv)
#else
tp = icp->icmp_data;
#endif
- tp += phdr_len;
+ tp = (const char *)tp + phdr_len;
if (cc - ICMP_MINLEN - phdr_len >= sizeof(tv1)) {
/* Copy to avoid alignment problems: */
OpenPOWER on IntegriCloud