From nobody Tue Jun 27 17:19:50 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QrBKf3Y2Zz4f4fs; Tue, 27 Jun 2023 17:19:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QrBKf31g3z3Np2; Tue, 27 Jun 2023 17:19:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687886390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wtXIqjWeQjY1ReeOyFSxdkLB2V6DnIj5J8GOmiMJzd8=; b=ba9ArSM9TvsF50TpM6EhpnonP7g3GySYRnhoP2mh76ZzxhglWyDuUE5RrB3BU1HrtWFDei wmYzKaMUzwaxMIEYxMMIux7e95cSC7n+L3+97XHGsw1erOsY47kX8fY7PiEPSmyT3BvV+S BY/JCMjg3llwPoI0b3pyNryAw37j9bfS5jfJTBtMSaSRMxJnFntkWfx9BixphD/R58hiUl YWDrmybfyuLBpbOb6BoVITNA0ZkxhdKHLvtp6EY6iZ0ZJv6CwdJEuS7QLK0K8LE1R1iV4d YX3twKNSpbsf/W7WSMmTuHGcmCU52J2OrjGCqu/lOHJsq9kCVGjxn/K4hLGSRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687886390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wtXIqjWeQjY1ReeOyFSxdkLB2V6DnIj5J8GOmiMJzd8=; b=x4dM+UtKM/fLofCn3xHcnC3LndzjQXPDPtRGkhPbzmxcGpoJ5v6W7jJY2d49G5Zq6Zk+/i R3Jxhw0qS2Gqka9I552tyBAQ3swAxXy0nuAgrW/YNUrwK/kLWgUA8XJLcjsL5Fm7w133R7 WcYChuJlzNy0HHlA1RKgbj+ttOQx8aimC40MgbGNyg9TKi6T81Ppku3OX3+EJBbcWdhgrx QzQu5oiew+RFfM6KCnWqUaqVGYswinGZm+nz3LchLsG2wI2idS5OiNsQf5O/RGtG6ne+8d BTeZFoCYkSpP2LPBI35tjXVC4sjofu165L7ZPA0VwhaSnaaRVaC4D4NQOLITfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687886390; a=rsa-sha256; cv=none; b=tqx7vKWLwdWpm0y1VoCxsXgYzDa2qnKvLdu1gTQv7wpT9dWaG2xlE0Gmz2U9Ni0f3umi6j to1nuPaGbYst/ciGEWJr3R+6wSyVfDDrYUezHA5uZMbDGNSMPZ253XSywsJcKpv51r0shV mbhuNbUy+/HEbNR7DqnwKlpjpa04iy8txOurGocTdEF1Zfd6nGt9M8dh0iAI3stMrm7mNx gSOkAjBorQnwYRxAQotHMQ3qpgf2S1+JG/0Mk+uxGE66MWjh3o4GndlL9/PEXDSPWPqlHP EtJhizwXZV5jJEHHbc4sYLHEMuJZEe+WK+sSAFIpa1rxX8r1s0kwRCEZC711zA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QrBKf1pz9z111g; Tue, 27 Jun 2023 17:19:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35RHJoV3007007; Tue, 27 Jun 2023 17:19:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35RHJo1P007006; Tue, 27 Jun 2023 17:19:50 GMT (envelope-from git) Date: Tue, 27 Jun 2023 17:19:50 GMT Message-Id: <202306271719.35RHJo1P007006@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 2e1665ff3454 - main - ldns: Remove a set but unused variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e1665ff345498c3f99ffd07b6e90669172d2df2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2e1665ff345498c3f99ffd07b6e90669172d2df2 commit 2e1665ff345498c3f99ffd07b6e90669172d2df2 Author: John Baldwin AuthorDate: 2023-06-27 17:19:32 +0000 Commit: John Baldwin 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;