From patchwork Wed May 18 00:51:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Lichtenheld X-Patchwork-Id: 2473 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director9.mail.ord1d.rsapps.net ([172.31.255.6]) by backend41.mail.ord1d.rsapps.net with LMTP id kEHPHSvQhGI0QwAAqwncew (envelope-from ) for ; Wed, 18 May 2022 06:53:31 -0400 Received: from proxy18.mail.iad3b.rsapps.net ([172.31.255.6]) by director9.mail.ord1d.rsapps.net with LMTP id mA9hMyvQhGKxKwAAalYnBA (envelope-from ) for ; Wed, 18 May 2022 06:53:31 -0400 Received: from smtp21.gate.iad3b ([172.31.255.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy18.mail.iad3b.rsapps.net with LMTPS id GIzgKivQhGKJLAAA3NpJmQ (envelope-from ) for ; Wed, 18 May 2022 06:53:31 -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: smtp21.gate.iad3b.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; dmarc=none (p=nil; dis=none) header.from=lichtenheld.com X-Suspicious-Flag: YES X-Classification-ID: c124e220-d698-11ec-9ad9-525400cdc90a-1-1 Received: from [216.105.38.7] ([216.105.38.7:57144] helo=lists.sourceforge.net) by smtp21.gate.iad3b.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id F0/48-14349-B20D4826; Wed, 18 May 2022 06:53:31 -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.94.2) (envelope-from ) id 1nrHI4-0002xg-9p; Wed, 18 May 2022 10:52:28 +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.94.2) (envelope-from ) id 1nrHHr-0002ux-N6 for openvpn-devel@lists.sourceforge.net; Wed, 18 May 2022 10:52:16 +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=861M5GbqY2+KWNZrpWgf64lVV1d2L8dQLazTTnz1eY0=; b=GVy9s8eUDZExcQiELYnKwD9O1Q yNjxrch2rq+Xn9esuDJfftOtaPHFnqij0fIKL5gqsUaOAuNUijTl52POcajeZyN44KY+Phm2imd7L PqSC/5wKOtJT6Q8SAiD0C99trN2dTskbNy/NSwpLmp+f9prOEwjVjg4omDXkdAh1XaZ4=; 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=861M5GbqY2+KWNZrpWgf64lVV1d2L8dQLazTTnz1eY0=; b=P ScvJ4cwdU/6Bti9gFMlNS0UZ5X6V/PhUp4rkfEaw4vWVIaGXRvl63UESjNEwswpGlzfg+osPA6b4s j7yRBzeg8YQeqFhDHGYZHGVWozTWgYyQOT19D9q1BqDTWruna4J+6Ab5k/eHMjxnYXJ3wyjKrGgzq N9UUqg2wSeJF52os=; Received: from mout-p-102.mailbox.org ([80.241.56.152]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) id 1nrHHm-006azh-3b for openvpn-devel@lists.sourceforge.net; Wed, 18 May 2022 10:52:14 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4L38v168DZz9skf for ; Wed, 18 May 2022 12:51:57 +0200 (CEST) From: Frank Lichtenheld To: openvpn-devel@lists.sourceforge.net Date: Wed, 18 May 2022 12:51:57 +0200 Message-Id: <20220518105157.9026-1-frank@lichtenheld.com> MIME-Version: 1.0 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: Avoid the ugly "No newline at end of file" in git diffs. Signed-off-by: Frank Lichtenheld --- dev-tools/uncrustify.conf | 2 ++ src/compat/compat-daemon.c | 1 - src/openvpn/ssl_ncp.c | 2 +- 3 files changed, 3 insertions(+), 2 deletion [...] Content analysis details: (-0.7 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [80.241.56.152 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-Headers-End: 1nrHHm-006azh-3b Subject: [Openvpn-devel] [PATCH] uncrustify: have exactly one newline at the end of files 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 Avoid the ugly "No newline at end of file" in git diffs. Signed-off-by: Frank Lichtenheld Acked-by: Antonio Quartulli --- dev-tools/uncrustify.conf | 2 ++ src/compat/compat-daemon.c | 1 - src/openvpn/ssl_ncp.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-tools/uncrustify.conf b/dev-tools/uncrustify.conf index 25eb4cdd..a04c6164 100644 --- a/dev-tools/uncrustify.conf +++ b/dev-tools/uncrustify.conf @@ -45,6 +45,8 @@ nl_enum_leave_one_liners=true nl_brace_fparen=add nl_max=4 nl_after_func_proto=2 +nl_end_of_file_min=1 +nl_end_of_file=force # Always use scoping braces for conditionals mod_full_brace_if=add diff --git a/src/compat/compat-daemon.c b/src/compat/compat-daemon.c index 197bc3f1..460b9e99 100644 --- a/src/compat/compat-daemon.c +++ b/src/compat/compat-daemon.c @@ -102,4 +102,3 @@ daemon(int nochdir, int noclose) } #endif /* ifndef HAVE_DAEMON */ - diff --git a/src/openvpn/ssl_ncp.c b/src/openvpn/ssl_ncp.c index 4a083e24..4bcbc69a 100644 --- a/src/openvpn/ssl_ncp.c +++ b/src/openvpn/ssl_ncp.c @@ -494,4 +494,4 @@ p2p_mode_ncp(struct tls_multi *multi, struct tls_session *session) multi->use_peer_id, multi->peer_id, common_cipher); gc_free(&gc); -} \ No newline at end of file +}