diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-05-17 09:36:16 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-05-17 09:36:16 +0000 |
commit | dd2948f9207969cefb79c1955bf10b1aa6515304 (patch) | |
tree | ecaff8f300cf535504e2146a428121185e999e01 /usr.bin/dig | |
parent | 476bd553b568fc74cdbb8ba2c50ab0abe347b054 (diff) |
dig: garbage collect the unused 'added'
ok florian
Diffstat (limited to 'usr.bin/dig')
-rw-r--r-- | usr.bin/dig/lib/dns/rdataset.c | 4 |
1 files changed, 1 insertions, 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) { |