[Openvpn-devel,1/3] Uncrustify sample-plugin sources according to code style

Message ID 20181130135641.11533-1-gert@greenie.muc.de
State Accepted, archived
Delegated to: David Sommerseth
Headers show
Series [Openvpn-devel,1/3] Uncrustify sample-plugin sources according to code style | expand

Commit Message

Gert Doering Nov. 30, 2018, 2:56 a.m. UTC
Signed-off-by: Gert Doering <gert@greenie.muc.de>
---
 .../keying-material-exporter-demo/keyingmaterialexporter.c  | 6 ++++--
 sample/sample-plugins/log/log.c                             | 4 ++++
 sample/sample-plugins/log/log_v3.c                          | 4 ++++
 3 files changed, 12 insertions(+), 2 deletions(-)

Comments

David Sommerseth Dec. 12, 2018, 2:19 a.m. UTC | #1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK.  Double checked by re-running uncrustify and there were no
additional changes.

Your patch has been applied to the master branch

commit 8e2ec9e0cfa2f6bcb559927e427182635ff9f7e6
Author: Gert Doering
Date:   Fri Nov 30 14:56:39 2018 +0100

     Uncrustify sample-plugin sources according to code style

     Signed-off-by: Gert Doering <gert@greenie.muc.de>
     Acked-by: David Sommerseth <davids@openvpn.net>
     Message-Id: <20181130135641.11533-1-gert@greenie.muc.de>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17969.html
     Signed-off-by: David Sommerseth <davids@openvpn.net>


- --
kind regards,

David Sommerseth

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIbBAEBCgAGBQJcEQrdAAoJEIbPlEyWcf3yCskP+JBULnmrs7eWvR+Wgv9xrP3p
2IofRkLItavCGvuepxCclWDbVV+T3XnZgMa/64Zo+VCoxiVgRKG/AvToTKRNuKfc
Xwow1yKX61JNSRRKFuIymRjnkTMmKQblnltY77oiA3m0OUFTflc9R6KK/JOT9Lxc
MUd8X9S1jyzJNj/X2CIksd6BocPF4H4a+2iMVFSUUFE3LvbWnkxbmm0S2f+/Jxfz
CGpkWvJvz42g8zhF5eBaA5B98u4iBrDid/g+KY0bu5H57EcAGG4j2RvkFwuAjdcb
l7TaRslwTdy1/jlC5YtMm+de5ysQK/2kLIoRVnKYYVFmtDSopVPimZEgor2Gs2f+
JohGgTkDFAYYuysaBnKS1t3GDcZPILTpdcZSfcvbBSdOFxc77YCa9D9FO6bk1HT4
WHD/GCXAw15hOwufD8L+QrgTy+eiRl/0ho/2U3VR+8I/8918ULCbcqHe7aIjQhRv
4SZMlko9zIU8MfMZQ7UXloN2EBzp5OKsYA2YfUIDgQMhFTEGMLRbs5t0gCibs5tP
lEc7M+rP0UhSbZEqfMDBuMTIDtnpC5qaw9Hq8/rPp8uOZMEBC5Lueie+lvaiN4zB
QW0nDe48iT5fn8GJ60BoPxveIBqq6McupxfqjSgU6ImwMN22vgoqzoV7RFXoGtmK
KFO86JPHTVKFannocKk=
=xn4G
-----END PGP SIGNATURE-----

Patch

diff --git a/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c b/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
index 9986461b..b53f13f6 100644
--- a/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
+++ b/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
@@ -230,7 +230,8 @@  tls_final(struct openvpn_plugin_args_func_in const *args,
     snprintf(sess->key, sizeof(sess->key) - 1, "%s", key);
     ovpn_note("app session key:  %s", sess->key);
 
-    switch (plugin->type) {
+    switch (plugin->type)
+    {
         case SERVER:
             server_store(args);
             break;
@@ -249,7 +250,8 @@  openvpn_plugin_func_v3(const int version,
                        struct openvpn_plugin_args_func_in const *args,
                        struct openvpn_plugin_args_func_return *rv)
 {
-    switch (args->type) {
+    switch (args->type)
+    {
         case OPENVPN_PLUGIN_TLS_VERIFY:
             return tls_verify(args);
 
diff --git a/sample/sample-plugins/log/log.c b/sample/sample-plugins/log/log.c
index ecf62c0e..b5c1c3be 100644
--- a/sample/sample-plugins/log/log.c
+++ b/sample/sample-plugins/log/log.c
@@ -156,11 +156,15 @@  show(const int type, const char *argv[], const char *envp[])
 
     printf("ARGV\n");
     for (i = 0; argv[i] != NULL; ++i)
+    {
         printf("%d '%s'\n", (int)i, argv[i]);
+    }
 
     printf("ENVP\n");
     for (i = 0; envp[i] != NULL; ++i)
+    {
         printf("%d '%s'\n", (int)i, envp[i]);
+    }
 }
 
 OPENVPN_EXPORT int
diff --git a/sample/sample-plugins/log/log_v3.c b/sample/sample-plugins/log/log_v3.c
index 3ef4a1cb..17b83f3f 100644
--- a/sample/sample-plugins/log/log_v3.c
+++ b/sample/sample-plugins/log/log_v3.c
@@ -177,11 +177,15 @@  show(const int type, const char *argv[], const char *envp[])
 
     printf("ARGV\n");
     for (i = 0; argv[i] != NULL; ++i)
+    {
         printf("%d '%s'\n", (int)i, argv[i]);
+    }
 
     printf("ENVP\n");
     for (i = 0; envp[i] != NULL; ++i)
+    {
         printf("%d '%s'\n", (int)i, envp[i]);
+    }
 }
 
 static void