Source-Changes-HG archive

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

[src/trunk]: src/sbin/ping Don't call variables that are used "dummy".



details:   https://anonhg.NetBSD.org/src/rev/fcd87c8e05a6
branches:  trunk
changeset: 346742:fcd87c8e05a6
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Jul 31 17:59:08 2016 +0000

description:
Don't call variables that are used "dummy".

diffstat:

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

diffs (34 lines):

diff -r 8009d77e9450 -r fcd87c8e05a6 sbin/ping/ping.c
--- a/sbin/ping/ping.c  Sun Jul 31 15:33:42 2016 +0000
+++ b/sbin/ping/ping.c  Sun Jul 31 17:59:08 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping.c,v 1.109 2014/11/29 14:48:42 christos Exp $      */
+/*     $NetBSD: ping.c,v 1.110 2016/07/31 17:59:08 dholland Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -58,7 +58,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.109 2014/11/29 14:48:42 christos Exp $");
+__RCSID("$NetBSD: ping.c,v 1.110 2016/07/31 17:59:08 dholland Exp $");
 #endif
 
 #include <stdio.h>
@@ -1401,13 +1401,13 @@
  * On the first SIGINT, allow any outstanding packets to dribble in
  */
 static void
-prefinish(int dummy)
+prefinish(int sig)
 {
        if (lastrcvd                    /* quit now if caught up */
            || nreceived == 0)          /* or if remote is dead */
                finish(0);
 
-       (void)signal(dummy, finish);    /* do this only the 1st time */
+       (void)signal(sig, finish);      /* do this only the 1st time */
 
        if (npackets > ntransmitted)    /* let the normal limit work */
                npackets = ntransmitted;



Home | Main Index | Thread Index | Old Index