summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-29 04:08:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-29 04:08:44 +0000
commit69043fa7d1d01e62a3687a9ff00fa10871bd5de7 (patch)
tree9243428579e3263a3e21155a7a745e623c761e0c
parent9026dba29fa7ed57578a41efb4e48f5f5e740f94 (diff)
unused variables; ok mcbride
-rw-r--r--usr.sbin/tcpdump/print-carp.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/tcpdump/print-carp.c b/usr.sbin/tcpdump/print-carp.c
index dd56f78b505..67c2809b82f 100644
--- a/usr.sbin/tcpdump/print-carp.c
+++ b/usr.sbin/tcpdump/print-carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-carp.c,v 1.1 2004/04/28 02:17:03 mcbride Exp $ */
+/* $OpenBSD: print-carp.c,v 1.2 2004/04/29 04:08:43 deraadt Exp $ */
/*
* Copyright (c) 2000 William C. Fenner.
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-carp.c,v 1.1 2004/04/28 02:17:03 mcbride Exp $";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-carp.c,v 1.2 2004/04/29 04:08:43 deraadt Exp $";
#endif
#ifdef HAVE_CONFIG_H
@@ -50,7 +50,7 @@ static const char rcsid[] =
void
carp_print(register const u_char *bp, register u_int len, int ttl)
{
- int version, type, auth_type;
+ int version, type;
char *type_s;
TCHECK(bp[0]);
@@ -69,10 +69,6 @@ carp_print(register const u_char *bp, register u_int len, int ttl)
TCHECK(bp[5]);
printf("vhid=%d advbase=%d advskew=%d", bp[5], bp[1], bp[2]);
if (vflag) {
- int naddrs = bp[3];
- int i;
- char c;
-
if (TTEST2(bp[0], len) && in_cksum((const u_short*)bp, len, 0))
printf(" (bad carp cksum %x!)",
EXTRACT_16BITS(&bp[6]));