Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/ping Make optspace an array of uint8_t, since some of t...



details:   https://anonhg.NetBSD.org/src/rev/2defa33d1e06
branches:  trunk
changeset: 818321:2defa33d1e06
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Oct 07 22:31:05 2016 +0000

description:
Make optspace an array of uint8_t, since some of the bytes written into
it are outside the signed char range.

diffstat:

 sbin/ping/ping.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 868c965d02d0 -r 2defa33d1e06 sbin/ping/ping.c
--- a/sbin/ping/ping.c  Fri Oct 07 21:55:29 2016 +0000
+++ b/sbin/ping/ping.c  Fri Oct 07 22:31:05 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping.c,v 1.111 2016/07/31 18:14:36 dholland Exp $      */
+/*     $NetBSD: ping.c,v 1.112 2016/10/07 22:31:05 joerg Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -58,7 +58,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.111 2016/07/31 18:14:36 dholland Exp $");
+__RCSID("$NetBSD: ping.c,v 1.112 2016/10/07 22:31:05 joerg Exp $");
 #endif
 
 #include <stdio.h>
@@ -181,7 +181,7 @@
 #define        opack_icmp      out_pack.o_u.u_icmp
 static struct ip *opack_ip;
 
-static char optspace[MAX_IPOPTLEN];            /* record route space */
+static uint8_t optspace[MAX_IPOPTLEN];         /* record route space */
 static int optlen;
 
 static int npackets;                           /* total packets to send */



Home | Main Index | Thread Index | Old Index