git: 2e1665ff3454 - main - ldns: Remove a set but unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 27 Jun 2023 17:19:50 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=2e1665ff345498c3f99ffd07b6e90669172d2df2

commit 2e1665ff345498c3f99ffd07b6e90669172d2df2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-27 17:19:32 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-27 17:19:32 +0000

    ldns: Remove a set but unused variable.
    
    Reviewed by:    des
    Differential Revision:  https://reviews.freebsd.org/D40695
---
 contrib/ldns/wire2host.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/contrib/ldns/wire2host.c b/contrib/ldns/wire2host.c
index 63b67a0d1713..91d3f1364d75 100644
--- a/contrib/ldns/wire2host.c
+++ b/contrib/ldns/wire2host.c
@@ -59,7 +59,6 @@ ldns_wire2dname(ldns_rdf **dname, const uint8_t *wire, size_t max, size_t *pos)
 	uint16_t pointer_target;
 	uint8_t pointer_target_buf[2];
 	size_t dname_pos = 0;
-	size_t uncompressed_length = 0;
 	size_t compression_pos = 0;
 	uint8_t tmp_dname[LDNS_MAX_DOMAINLEN];
 	unsigned int pointer_count = 0;
@@ -120,7 +119,6 @@ ldns_wire2dname(ldns_rdf **dname, const uint8_t *wire, size_t max, size_t *pos)
 			return LDNS_STATUS_DOMAINNAME_OVERFLOW;
 		}
 		memcpy(&tmp_dname[dname_pos], &wire[*pos], label_size);
-		uncompressed_length += label_size + 1;
 		dname_pos += label_size;
 		*pos = *pos + label_size;