From 1b7fd029fee492f10987ede8b2a9e48fd5902f33 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 17 May 2024 09:36:15 +0000 Subject: [PATCH] dig: garbage collect the unused 'added' ok florian --- usr.bin/dig/lib/dns/rdataset.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/dig/lib/dns/rdataset.c b/usr.bin/dig/lib/dns/rdataset.c index 6e6390aa66a..9d7f98acc6b 100644 --- a/usr.bin/dig/lib/dns/rdataset.c +++ b/usr.bin/dig/lib/dns/rdataset.c @@ -198,7 +198,7 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, dns_rdata_t rdata = DNS_RDATA_INIT; isc_region_t r; isc_result_t result; - unsigned int i, count = 0, added; + unsigned int i, count = 0; isc_buffer_t savedbuffer, rdlen; unsigned int headlen; int question = 0; @@ -287,7 +287,6 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, savedbuffer = *target; i = 0; - added = 0; do { /* @@ -335,7 +334,6 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, isc_buffer_putuint16(&rdlen, (uint16_t)(target->used - rdlen.used - 2)); - added++; } if (shuffle) { -- 2.20.1