git: a7f25f141ac5 - main - libipf: Remove set but unused variable from printfraginfo().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jun 2023 17:19:39 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=a7f25f141ac5fee8b67c2b60ad96bc91eaade870
commit a7f25f141ac5fee8b67c2b60ad96bc91eaade870
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-27 17:19:31 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-27 17:19:31 +0000
libipf: Remove set but unused variable from printfraginfo().
Reported by: GCC
Differential Revision: https://reviews.freebsd.org/D40652
---
sbin/ipf/libipf/printfraginfo.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/sbin/ipf/libipf/printfraginfo.c b/sbin/ipf/libipf/printfraginfo.c
index fcafdde707be..6abec4316a41 100644
--- a/sbin/ipf/libipf/printfraginfo.c
+++ b/sbin/ipf/libipf/printfraginfo.c
@@ -14,7 +14,6 @@
void
printfraginfo(char *prefix, struct ipfr *ifr)
{
- frentry_t fr;
int family;
PRINTF("%s", prefix);
@@ -25,14 +24,8 @@ printfraginfo(char *prefix, struct ipfr *ifr)
PRINTF("inet");
family = AF_INET;
}
- fr.fr_flags = 0xffffffff;
PRINTF(" %s -> ", hostname(family, &ifr->ipfr_src));
-/*
- if (kmemcpy((char *)&fr, (u_long)ifr->ipfr_rule,
- sizeof(fr)) == -1)
- return;
- */
PRINTF("%s id %x ttl %lu pr %d pkts %u bytes %u seen0 %d ref %d\n",
hostname(family, &ifr->ipfr_dst), ifr->ipfr_id,
ifr->ipfr_ttl, ifr->ipfr_p, ifr->ipfr_pkts, ifr->ipfr_bytes,