From: tb Date: Fri, 17 May 2024 09:36:15 +0000 (+0000) Subject: dig: garbage collect the unused 'added' X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1b7fd029fee492f10987ede8b2a9e48fd5902f33;p=openbsd dig: garbage collect the unused 'added' ok florian --- 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) {