Source-Changes-HG archive

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

[src/trunk]: src/sbin/ping fix sign.



details:   https://anonhg.NetBSD.org/src/rev/5b555486808a
branches:  trunk
changeset: 372489:5b555486808a
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 01 14:42:12 2022 +0000

description:
fix sign.

diffstat:

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

diffs (27 lines):

diff -r 35aa469536d3 -r 5b555486808a sbin/ping/ping.c
--- a/sbin/ping/ping.c  Thu Dec 01 14:40:53 2022 +0000
+++ b/sbin/ping/ping.c  Thu Dec 01 14:42:12 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping.c,v 1.121 2022/12/01 14:40:53 christos Exp $      */
+/*     $NetBSD: ping.c,v 1.122 2022/12/01 14:42:12 christos Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -58,7 +58,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.121 2022/12/01 14:40:53 christos Exp $");
+__RCSID("$NetBSD: ping.c,v 1.122 2022/12/01 14:42:12 christos Exp $");
 #endif
 
 #include <stdio.h>
@@ -1079,7 +1079,7 @@
        /* Check the IP header */
        ip = (struct ip *) buf;
        hlen = ip->ip_hl << 2;
-       if (hlen < sizeof(*ip) || tot_len < hlen + ICMP_MINLEN) {
+       if (hlen < (int)sizeof(*ip) || tot_len < hlen + ICMP_MINLEN) {
                if (pingflags & F_VERBOSE) {
                        jiggle_flush(1);
                        (void)printf("packet too short (%d bytes) from %s\n",



Home | Main Index | Thread Index | Old Index