From 69b538920fb5b43d5fda86656fba55f26557a779 Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 5 Jan 2022 05:36:37 +0000 Subject: [PATCH] clean up another -Wunused-but-set-variable thing --- usr.sbin/tcpdump/print-rt6.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.sbin/tcpdump/print-rt6.c b/usr.sbin/tcpdump/print-rt6.c index 6300065d3b2..f0359d81be5 100644 --- a/usr.sbin/tcpdump/print-rt6.c +++ b/usr.sbin/tcpdump/print-rt6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-rt6.c,v 1.8 2020/01/24 22:46:37 procter Exp $ */ +/* $OpenBSD: print-rt6.c,v 1.9 2022/01/05 05:36:37 dlg Exp $ */ /* @@ -49,12 +49,10 @@ rt6_print(const u_char *bp, const u_char *bp2) { const struct ip6_rthdr *dp; const struct ip6_rthdr0 *dp0; - const struct ip6_hdr *ip; const u_char *ep; int i, len; dp = (struct ip6_rthdr *)bp; - ip = (struct ip6_hdr *)bp2; len = dp->ip6r_len; /* 'ep' points to the end of avaible data. */ -- 2.20.1