From: Frank Lichtenheld Date: Wed, 18 May 2022 10:51:57 +0000 (+0200) Subject: uncrustify: have exactly one newline at the end of files X-Git-Tag: v2.6_beta1~195 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a76153c1ca98c841b8c8cf3b6ade6c00ee3876a5;p=thirdparty%2Fopenvpn.git uncrustify: have exactly one newline at the end of files Avoid the ugly "No newline at end of file" in git diffs. Signed-off-by: Frank Lichtenheld Acked-by: Antonio Quartulli Message-Id: <20220518105157.9026-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24386.html Signed-off-by: Gert Doering --- diff --git a/dev-tools/uncrustify.conf b/dev-tools/uncrustify.conf index 27db8ddae..325f3108c 100644 --- a/dev-tools/uncrustify.conf +++ b/dev-tools/uncrustify.conf @@ -46,6 +46,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 197bc3f1b..460b9e99a 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 43d4e60c2..564942503 100644 --- a/src/openvpn/ssl_ncp.c +++ b/src/openvpn/ssl_ncp.c @@ -489,4 +489,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 +}