]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Uncrustify sample-plugin sources according to code style
authorGert Doering <gert@greenie.muc.de>
Fri, 30 Nov 2018 13:56:39 +0000 (14:56 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 12 Dec 2018 12:14:31 +0000 (13:14 +0100)
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>
sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
sample/sample-plugins/log/log.c
sample/sample-plugins/log/log_v3.c

index 9986461b82f42ffdbd5d555db940fb0a6c3102f6..b53f13f6d34ae13ff2067df4e6280c4c717f3bfc 100644 (file)
@@ -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);
 
index ecf62c0e653c8ec852ab641e75363747b795c1af..b5c1c3be4c1b85867ca2b2bd46d597e00e5b333f 100644 (file)
@@ -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
index 3ef4a1cb9771dded613785a08dda85b9cfb2e56d..17b83f3fecc668a04c2934e2f1899dca39b650ed 100644 (file)
@@ -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