]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
uncrustify: have exactly one newline at the end of files
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 18 May 2022 10:51:57 +0000 (12:51 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 22 May 2022 15:16:08 +0000 (17:16 +0200)
Avoid the ugly "No newline at end of file" in git diffs.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Antonio Quartulli <a@unstable.cc>
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 <gert@greenie.muc.de>
dev-tools/uncrustify.conf
src/compat/compat-daemon.c
src/openvpn/ssl_ncp.c

index 27db8ddae5f21c3cc13e91ce3c3f90f5833bb300..325f3108c3b6832d9784844ae9dfa45ab164d16a 100644 (file)
@@ -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
index 197bc3f1bbb4fe09043e7ac15817b725ba80ccbc..460b9e99a2f2048f91af60accb59b4dc7125668e 100644 (file)
@@ -102,4 +102,3 @@ daemon(int nochdir, int noclose)
 }
 
 #endif /* ifndef HAVE_DAEMON */
-
index 43d4e60c2a0c7c2d9b1a31d0e96285e24af6f55a..564942503dcfaad7c94d804536e0c1d605b777d7 100644 (file)
@@ -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
+}