From de9e173659b5d6a1120a6c0876d4e6b6c39f59d0 Mon Sep 17 00:00:00 2001 From: asomers Date: Tue, 13 Aug 2019 16:25:23 +0000 Subject: [PATCH] ping: fix data type of a variable for a packet sequence number MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Submitted by: Ján Sučan MFC after: 2 weeks Sponsored by: Google, inc. (Google Summer of Code 2019) Differential Revision: https://reviews.freebsd.org/D21244 --- sbin/ping/ping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index bca3f6ec9d5..762196062c2 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1087,7 +1087,8 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from, struct timeval *tv) struct ip *ip; const void *tp; double triptime; - int dupflag, hlen, i, j, recv_len, seq; + int dupflag, hlen, i, j, recv_len; + uint16_t seq; static int old_rrlen; static char old_rr[MAX_IPOPTLEN]; -- 2.45.0