KNF. remove unused variable "signo". from deraadt
This commit is contained in:
parent
00c1d95307
commit
7f0c96b84b
@ -1,5 +1,5 @@
|
||||
.\" $NetBSD: ping6.8,v 1.21 2002/05/26 12:07:05 itojun Exp $
|
||||
.\" $KAME: ping6.8,v 1.55 2002/05/26 05:43:33 itojun Exp $
|
||||
.\" $NetBSD: ping6.8,v 1.22 2002/05/26 13:21:01 itojun Exp $
|
||||
.\" $KAME: ping6.8,v 1.57 2002/05/26 13:18:25 itojun Exp $
|
||||
.\"
|
||||
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
.\" All rights reserved.
|
||||
@ -244,7 +244,7 @@ The option is meaningful only if the target
|
||||
is a neighbor.
|
||||
.It Fl S Ar sourceaddr
|
||||
Specifies the source address of request packets.
|
||||
The source address must be one of unicast addresses of the sending node,
|
||||
The source address must be one of the unicast addresses of the sending node,
|
||||
and must be numeric.
|
||||
.It Fl s Ar packetsize
|
||||
Specifies the number of data bytes to be sent.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* $NetBSD: ping6.c,v 1.42 2002/05/26 12:56:57 itojun Exp $ */
|
||||
/* $KAME: ping6.c,v 1.153 2002/05/26 05:38:14 itojun Exp $ */
|
||||
/* $NetBSD: ping6.c,v 1.43 2002/05/26 13:21:01 itojun Exp $ */
|
||||
/* $KAME: ping6.c,v 1.155 2002/05/26 13:18:25 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
@ -81,7 +81,7 @@ static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: ping6.c,v 1.42 2002/05/26 12:56:57 itojun Exp $");
|
||||
__RCSID("$NetBSD: ping6.c,v 1.43 2002/05/26 13:21:01 itojun Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -246,7 +246,6 @@ struct msghdr smsghdr;
|
||||
struct iovec smsgiov;
|
||||
char *scmsg = 0;
|
||||
|
||||
volatile int signo;
|
||||
volatile sig_atomic_t seenalrm;
|
||||
volatile sig_atomic_t seenint;
|
||||
#ifdef SIGINFO
|
||||
@ -1047,7 +1046,7 @@ main(argc, argv)
|
||||
if ((fdmaskp = malloc(fdmasks)) == NULL)
|
||||
err(1, "malloc");
|
||||
|
||||
signo = seenalrm = seenint = 0;
|
||||
seenalrm = seenint = 0;
|
||||
#ifdef SIGINFO
|
||||
seeninfo = 0;
|
||||
#endif
|
||||
@ -1146,7 +1145,7 @@ void
|
||||
onsignal(sig)
|
||||
int sig;
|
||||
{
|
||||
signo = sig;
|
||||
|
||||
switch (sig) {
|
||||
case SIGALRM:
|
||||
seenalrm++;
|
||||
@ -1605,11 +1604,9 @@ pr_pack(buf, cc, mhdr)
|
||||
} else {
|
||||
i = 0;
|
||||
while (cp < end) {
|
||||
if (dnsdecode((const u_char **)&cp,
|
||||
end,
|
||||
(const u_char *)(ni + 1),
|
||||
dnsname,
|
||||
sizeof(dnsname)) == NULL) {
|
||||
if (dnsdecode((const u_char **)&cp, end,
|
||||
(const u_char *)(ni + 1), dnsname,
|
||||
sizeof(dnsname)) == NULL) {
|
||||
printf("???");
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user