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/0707556be7a7
branches: trunk
changeset: 816884:0707556be7a7
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 a771a10918dd -r 0707556be7a7 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