From patchwork Sat Aug 13 11:20:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lev Stipakov X-Patchwork-Id: 2676 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director10.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id iGBJCvoV+GIRLQAAIUCqbw (envelope-from ) for ; Sat, 13 Aug 2022 17:22:02 -0400 Received: from proxy10.mail.ord1d.rsapps.net ([172.30.191.6]) by director10.mail.ord1d.rsapps.net with LMTP id QEk6CvoV+GKnBAAApN4f7A (envelope-from ) for ; Sat, 13 Aug 2022 17:22:02 -0400 Received: from smtp29.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy10.mail.ord1d.rsapps.net with LMTPS id uEvjCfoV+GLcKwAAfSg8FQ (envelope-from ) for ; Sat, 13 Aug 2022 17:22:02 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp29.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Suspicious-Flag: YES X-Classification-ID: f87faa8a-1b4d-11ed-a54b-525400f257a9-1-1 Received: from [216.105.38.7] ([216.105.38.7:52114] helo=lists.sourceforge.net) by smtp29.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 94/32-20453-9F518F26; Sat, 13 Aug 2022 17:22:01 -0400 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 1oMyZ9-0000aw-90; Sat, 13 Aug 2022 21:21:07 +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 1oMyZ8-0000aq-7P for openvpn-devel@lists.sourceforge.net; Sat, 13 Aug 2022 21:21:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding: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=Z5kucfhXj4h+N0a+4rfMyVKySjb4imTUbzfokr0bMiM=; b=hJD0NDUxXHo1WUWOMDUBJqjtnw SVioaubJd+cOi+5U3b12O1caSSmLFdA8OWgiYcn7/Uo3So4he8RJTefoY4yQbAypS6igGqboFv33J RmDHJgfeoGki9F+f6zwJ5Ve12stQkKbIfDX+RsjmTJlE0det8TjrmQhXCQW69PT+2Kvs=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding: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=Z5kucfhXj4h+N0a+4rfMyVKySjb4imTUbzfokr0bMiM=; b=Xf3LGA1AL3YFszunOYhq3/GNzG 0HloiAjFCckplQlbXuf/Ou6z6YGglgtVsZ9ycbktOKThuwh/1k2UG98hz6OUPfiuuFTmIJpsMvHlo cr7Mduq24XMiTfRm4hEzHlo2AK29rX0SRlKnevwU1fCfarZ8G35IbtA7cii9bBVQ682k=; Received: from mail-lj1-f174.google.com ([209.85.208.174]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1oMyZ7-0013zT-JF for openvpn-devel@lists.sourceforge.net; Sat, 13 Aug 2022 21:21:06 +0000 Received: by mail-lj1-f174.google.com with SMTP id by6so4077014ljb.11 for ; Sat, 13 Aug 2022 14:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc; bh=Z5kucfhXj4h+N0a+4rfMyVKySjb4imTUbzfokr0bMiM=; b=Klso7suISf6RpY83qUGgV8BvmdWOCiPPQQKwfBOKZ5voFjjJWXBkvyKdtGIIBabcnF 4r71MX1kH+PjW053K5ennmXF3rPw/XLtKljajxYbmsSfDGM+FyUbwG3j1m92e5KwNPzi poOj3TbRwrUZHc26CCO2/4jjLox/b4SaMnsqk0uG/gnhw/I0E80Dwax1d0/T8Lr2OGhq HenJFDthl8yuzYeopSFdeQGiKyh0hE1i4faa+NAVXVafN0kgTgLjE6SHIAOllahrRyJu GdNPIPEHl7Leosi0FAIyVMYBjuyFBAuJIVUkZms4wmBOdDLKas0RCLh2vlxRFQgBy/4G 9XnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Z5kucfhXj4h+N0a+4rfMyVKySjb4imTUbzfokr0bMiM=; b=4cJZNvqGJAJKg7G4F2ev/UmzosuDUeK5SJns0jNQndy86gLW4MmW3TJpfyJm4wbukC gUaRzRVYUr3bANQCobagzXJlc/+m1JC+Z1xhtXob9/AZm87HWZVRdZpBsZN51pjEkLQJ 8Myzc2Sc3gWTryynS0PMOB1Hpb8d2y4vMSxFd4wFtd7pbTAs3OUzrkJSlJpTKh94o6Fq 4Bi2a6AAhPqa4FN5/f+u3AtfRbG5HkpJAN9pVgkHa6k7lmwbVL59978EVJiqtfn//Z7G BxCUOAjtbNi+fYiViOIpJWDxaSSGItEw00xnBg3cPYGyfTh3dr1Tp/USl8c0WL7UaSlg dhpg== X-Gm-Message-State: ACgBeo0n8fXgH1JLVGbxxcI8p8iM0EPuX6cpBq6y8wR/3Q1JUl2uJ8kM 1hjvotugbdOw8creJqCovgBA+FiDvkg= X-Google-Smtp-Source: AA6agR7Bkfe+jUpN+3c9cOdgi5fYwCXcz2TBy88jFmODKF6ig6IK4yGL3Me8rI9Bc0G9O6SkTMNHmA== X-Received: by 2002:a2e:8045:0:b0:261:7f50:61af with SMTP id p5-20020a2e8045000000b002617f5061afmr975632ljg.373.1660425658533; Sat, 13 Aug 2022 14:20:58 -0700 (PDT) Received: from LAPTOP-4L3N7KFS.localdomain (81-175-157-115.bb.dnainternet.fi. [81.175.157.115]) by smtp.gmail.com with ESMTPSA id s3-20020a05651c200300b0025e778f6f13sm861448ljo.4.2022.08.13.14.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 14:20:58 -0700 (PDT) From: Lev Stipakov To: openvpn-devel@lists.sourceforge.net Date: Sun, 14 Aug 2022 00:20:40 +0300 Message-Id: <20220813212040.113-1-lstipakov@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Report: Spam detection software, running on the system "util-spamd-1.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: From: Lev Stipakov This has been added in 2006 and as of now not used. Signed-off-by: Lev Stipakov --- src/openvpn/error.c | 9 --------- src/openvpn/error.h | 5 ----- 2 files changed, 14 deletions(-) Content analysis details: (-0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.174 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [lstipakov[at]gmail.com] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.174 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-Headers-End: 1oMyZ7-0013zT-JF Subject: [Openvpn-devel] [PATCH] error.c: remove unused crash() function 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: , Cc: Lev Stipakov MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: Lev Stipakov This has been added in 2006 and as of now not used. Signed-off-by: Lev Stipakov Acked-by: Gert Doering --- src/openvpn/error.c | 9 --------- src/openvpn/error.h | 5 ----- 2 files changed, 14 deletions(-) diff --git a/src/openvpn/error.c b/src/openvpn/error.c index 7cd35b17..c8c77358 100644 --- a/src/openvpn/error.c +++ b/src/openvpn/error.c @@ -808,15 +808,6 @@ msg_flags_string(const unsigned int flags, struct gc_arena *gc) return BSTR(&out); } -#ifdef ENABLE_DEBUG -void -crash(void) -{ - char *null = NULL; - *null = 0; -} -#endif - #ifdef _WIN32 const char * diff --git a/src/openvpn/error.h b/src/openvpn/error.h index 972619fe..89adb3e6 100644 --- a/src/openvpn/error.h +++ b/src/openvpn/error.h @@ -220,11 +220,6 @@ __attribute__((__noreturn__)) [!!sizeof(struct { int __error_if_negative : (expr) ? 2 : -1; })] #endif -#ifdef ENABLE_DEBUG -void crash(void); /* force a segfault (debugging only) */ - -#endif - /* Inline functions */ static inline bool