From patchwork Sun Apr 30 17:22:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Schwabe X-Patchwork-Id: 3199 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7300:3242:b0:be:2c52:f7bc with SMTP id j2csp2285340dye; Sun, 30 Apr 2023 10:23:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ouEq13RP0umHW5lSi/IJbT24dQd7D0XEjkMeF0eD7iJcVSc1hVH5SMI5BGsWa5LTLOUDR X-Received: by 2002:a92:d6c8:0:b0:330:649f:6f38 with SMTP id z8-20020a92d6c8000000b00330649f6f38mr2628333ilp.29.1682875399678; Sun, 30 Apr 2023 10:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682875399; cv=none; d=google.com; s=arc-20160816; b=jhg9hOz9J6AjXjXmoDp1o9ltdzNG7RT4pZCBAkdLlsT7a7HmalVOMVZkR5ZGqdwTeQ H7+BpHDQ88LnOjBt2j3yAV7g2nVPKFoHf1anH9k588dhkbZeN7ukEb+/5TIl9S57Eb7b csohjdQ6FT4Nor8waRBHA+X6Elv/TY2BN8PsgHh3UvBXeYRK1OHW9QL/bJL2kgqyoRYA TwoQ9JpRciCPto4gZZg3n2td+HJULYjGkQT5Rs78iGx/shrgz7EARWqCUx52O+yevrLx D11h5DXRpL+vSBRpF/ZZHZh2lcurKdIEMMG4pt6SfrR6lo9/YBA75MQWyzLaWLMUM8X9 GeLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:dkim-signature; bh=qLHMZfHRIVtHSk+W6Df8GrLJSUjS8uN6cvnAtCtO3pE=; b=tnGFvlx6bzuyBh2OZS/+bB5DKYanfhZqY+pZeItohzo/xax6d/5cTC4g8HEGD4GTfs l+Gav9duXqnU95FIl7K0MVxDq9tT9sSXQyU+q5tfWAyGPfnGgUavLNnsn5R1qTbe4JAL qpLnt8LYjsIUZw3kytjL8ox2Ih8v3LM9LHB6ubuSCFZ51uPPK/daEGq+C6K8j00JBM2X x8qdVoSAvb35VILXCcoN1njQcZUSl9v1tVFkwmevWSshRxFo4ddccjVQfMLFVBTeDx38 7Kznah81EuugeuokkF3nolijTNjLuiXigOjSgEFeLaHiqNl3sLroNFcbxN5XYuFH/kdv GCoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=gqRWsItu; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=BkENGiwa; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id a6-20020a926606000000b0032ab192a619si17281578ilc.110.2023.04.30.10.23.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Apr 2023 10:23:19 -0700 (PDT) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=gqRWsItu; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=BkENGiwa; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1ptAki-0001MY-33; Sun, 30 Apr 2023 17:22:23 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ptAke-0001L3-3t for openvpn-devel@lists.sourceforge.net; Sun, 30 Apr 2023 17:22:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TpeQaq2rF27YPK+qQG+5lJef3LE7OJfhhUNXE+CEs0M=; b=gqRWsItux9juZb1Q/uIbItpoy/ UL8ssvr1xyzbSZRQXuW5K/e/B+c1FHv5rCjwHJOA4wUaGDPKwhBOeMmTzFLZcmnO6LUiNX7+i3BMx Ssq2da24hR70z6rk+ic0aRAFTuuyR+tbb5apFnOHt/QhhLq94rvUWsFdDZBzQHp/lTWA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=TpeQaq2rF27YPK+qQG+5lJef3LE7OJfhhUNXE+CEs0M=; b=B kENGiwakcR7uNpb17toVX3YDQ7NMQQdqrUTtzUQWCTewAPHs1X4F12xz8AWtJSBvkH1hDxvtMhGqq HAbW6ay35EqkhemsRyb7G1QhY8lEydGivtbH5oyLnfADS7qJkd8/TktSLT8ZPWQ5oqqKB179b+JCv 8Y8apNdVTogNLQyg=; Received: from mail.blinkt.de ([192.26.174.232]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1ptAkX-0003k6-U1 for openvpn-devel@lists.sourceforge.net; Sun, 30 Apr 2023 17:22:19 +0000 Received: from kamera.blinkt.de ([2001:638:502:390:20c:29ff:fec8:535c]) by mail.blinkt.de with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ptAkM-000FhN-Dp for openvpn-devel@lists.sourceforge.net; Sun, 30 Apr 2023 19:22:02 +0200 Received: (nullmailer pid 206574 invoked by uid 10006); Sun, 30 Apr 2023 17:22:02 -0000 From: Arne Schwabe To: openvpn-devel@lists.sourceforge.net Date: Sun, 30 Apr 2023 19:22:02 +0200 Message-Id: <20230430172202.206528-1-arne@rfc2549.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The newer compilers started to complain about this. Change-Id: I784def4d941b7d21c7979f84f8681719c9ff7a53 Signed-off-by: Arne Schwabe --- src/openvpn/pool.c | 2 -- 1 file changed, 2 deletions(-) Content analysis details: (0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Headers-End: 1ptAkX-0003k6-U1 Subject: [Openvpn-devel] [PATCH] Remove unused variable line X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1764622754783038454?= X-GMAIL-MSGID: =?utf-8?q?1764622754783038454?= The newer compilers started to complain about this. Change-Id: I784def4d941b7d21c7979f84f8681719c9ff7a53 Signed-off-by: Arne Schwabe Acked-by: Gert Doering --- src/openvpn/pool.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openvpn/pool.c b/src/openvpn/pool.c index f899b95d2..4af9bcb10 100644 --- a/src/openvpn/pool.c +++ b/src/openvpn/pool.c @@ -608,7 +608,6 @@ ifconfig_pool_read(struct ifconfig_pool_persist *persist, struct ifconfig_pool * struct gc_arena gc = gc_new(); struct buffer in = alloc_buf_gc(256, &gc); char *cn_buf, *ip_buf, *ip6_buf; - int line = 0; ALLOC_ARRAY_CLEAR_GC(cn_buf, char, buf_size, &gc); ALLOC_ARRAY_CLEAR_GC(ip_buf, char, buf_size, &gc); @@ -621,7 +620,6 @@ ifconfig_pool_read(struct ifconfig_pool_persist *persist, struct ifconfig_pool * { break; } - ++line; if (!BLEN(&in)) { continue;