summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-07-20 02:24:24 +0000
committerkn <kn@openbsd.org>2020-07-20 02:24:24 +0000
commitbea29582871983d4542af556b9dd9d1013fe62e9 (patch)
treefed8524029bc4d61c87b29bb69f74551b91e5c35
parent__main() is no longer used by any of our toolchains (diff)
downloadwireguard-openbsd-bea29582871983d4542af556b9dd9d1013fe62e9.tar.xz
wireguard-openbsd-bea29582871983d4542af556b9dd9d1013fe62e9.zip
Remove unused variable "caplen"
No object change.
-rw-r--r--usr.sbin/tcpdump/print-wg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-wg.c b/usr.sbin/tcpdump/print-wg.c
index 595c0d66041..70a61bd6ad4 100644
--- a/usr.sbin/tcpdump/print-wg.c
+++ b/usr.sbin/tcpdump/print-wg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-wg.c,v 1.4 2020/06/21 07:14:17 tb Exp $ */
+/* $OpenBSD: print-wg.c,v 1.5 2020/07/20 02:24:24 kn Exp $ */
/*
* Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
@@ -63,7 +63,6 @@ struct wg_data {
uint32_t
wg_match(const u_char *bp, u_int length)
{
- u_int caplen;
uint32_t type;
if (length < sizeof(type))