From nobody Wed Apr 20 14:58:54 2022 X-Original-To: dev-commits-src-all@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 ABE0511E7FA9; Wed, 20 Apr 2022 14:58:54 +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 4Kk3ht4QMWz3lDR; Wed, 20 Apr 2022 14:58:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650466734; 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=7W8xKfArDP49oKgW4g6D12eDKfDqj1bEaVHI75OsoPY=; b=rqNTtVQBrqesslgv8OcuDn2F0Er/4IMllNhyuo6L9crcBKJUKy+aI+ZBFgcTGbhBwBf0Hv ageVo8Rkuf5aSUk3I6jnUdPZ1HA4Q62Se0RGsTpAFSQOCth7zfBx7BEnV620Jme9upKxk0 rQiPWGU6VigK6EYwdYhB4Cd0EtVfw0x4O5zhZT62DO1JfyJzn9Mkas+As5vGhdKuqDIdue xBqWexLDSKzMI7EmBp/lm/eEd/cPLdvblIChx27sdWTRlUrjOeZZNrhwtW5Fa8J5HWd1Up rHDP5qbIPDusPjnt36qw27fKUsnqfEnUNYbUdP650xnDhSuLABiirsHHXEVluA== 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 779E316385; Wed, 20 Apr 2022 14:58:54 +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 23KEwsIP053685; Wed, 20 Apr 2022 14:58:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23KEwsh9053684; Wed, 20 Apr 2022 14:58:54 GMT (envelope-from git) Date: Wed, 20 Apr 2022 14:58:54 GMT Message-Id: <202204201458.23KEwsh9053684@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: ce700f78f7fb - main - libfetch: remove a set-but-not-uswed variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ce700f78f7fb28a252978382a1d0a66d08b6469a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650466734; 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=7W8xKfArDP49oKgW4g6D12eDKfDqj1bEaVHI75OsoPY=; b=Pa8bSrC+0O65pzVUcmpVGWtYTe6Mah0e69GSuOJmh0BfQsefQI04tLJ/O6y+i3ryTvpQjL WC+9gp+4eb6tN3VuR4h36dsxtlsyDRhaC8NeoQ9MIxOiDdyXXW/5GgJ/dmKlziF4H6GEkg wP1L7jA1XcjY7o4bP5hZgHRbGP/ym8v7/XCWJOUdzcIFmCOeSMpYrq5hVmm+paRgg48nvA rfJrTg4ZIgudYN6bRukhw8oD2qkzgLgMBKIrWwuTxDvezUu4JpLW3FP7uR3JZur+Sxf+5s vSVr2MTqqBkuoZdzYDz7a56FOyUgO++A40URea/VO2It6piLztqSaAqUIB1+Pw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650466734; a=rsa-sha256; cv=none; b=fSaYWDkk4f9znNOp8gAu3Pc5YzQbtJ0BbWW3FXzkbFnv2J5Ln5dWOGZxWcqj+5HCkra5xC tDbHPIj68iY43HnbDSRrLRJ/3jZs/k0NcwCJREV5QIljmyokK+jJkkB0v1FE/RfqiPuF0t TRuvcjjziWNhR50hbI7FeMSmdl1CgbQMhRFtmAXobeSeXF34VcmBOThTHmzpVIleaBPW6U u9us6BxHZMogZ+s+oS97LHpZOzNScoCC6Yl614bGflbMJPzjtbS2a7ZdlpIvo46DUN7Vrb yD+7rEt0IBBXkwBuvHMy6t3wnVF3vNQ55xC8ECR+fEHYgjzrrGLBPS4+WQ1k0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=ce700f78f7fb28a252978382a1d0a66d08b6469a commit ce700f78f7fb28a252978382a1d0a66d08b6469a Author: Stefan Eßer AuthorDate: 2022-04-20 14:56:57 +0000 Commit: Stefan Eßer CommitDate: 2022-04-20 14:58:33 +0000 libfetch: remove a set-but-not-uswed variable --- lib/libfetch/http.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index bcb089dc0fc4..c1d92d08b317 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -976,13 +976,12 @@ http_base64(const char *src) "0123456789+/"; char *str, *dst; size_t l; - int t, r; + int t; l = strlen(src); if ((str = malloc(((l + 2) / 3) * 4 + 1)) == NULL) return (NULL); dst = str; - r = 0; while (l >= 3) { t = (src[0] << 16) | (src[1] << 8) | src[2]; @@ -991,7 +990,7 @@ http_base64(const char *src) dst[2] = base64[(t >> 6) & 0x3f]; dst[3] = base64[(t >> 0) & 0x3f]; src += 3; l -= 3; - dst += 4; r += 4; + dst += 4; } switch (l) { @@ -1002,7 +1001,6 @@ http_base64(const char *src) dst[2] = base64[(t >> 6) & 0x3f]; dst[3] = '='; dst += 4; - r += 4; break; case 1: t = src[0] << 16; @@ -1010,7 +1008,6 @@ http_base64(const char *src) dst[1] = base64[(t >> 12) & 0x3f]; dst[2] = dst[3] = '='; dst += 4; - r += 4; break; case 0: break;