aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/env_set.h
diff options
context:
space:
mode:
authorGert Doering2018-11-30 14:56:41 +0100
committerDavid Sommerseth2018-12-12 13:43:17 +0100
commitf57431cdc88f22fa4d7962946f0d3187fe058539 (patch)
tree6e606561672de812959563f555c591479d406e81 /src/openvpn/env_set.h
parenta7b5993d9d6319c77d80212db61c74060cd7e7f1 (diff)
downloadopenvpn-f57431cdc88f22fa4d7962946f0d3187fe058539.zip
openvpn-f57431cdc88f22fa4d7962946f0d3187fe058539.tar.gz
uncrustify openvpn/ sources
There are an amazing number of brackets that were either totally missing, or have snuck up on the "for(...){" line. Further, uncrustify wants "|" in multi-line logical expressions now at the beginning of the new line, and "PRIi64" now gets surrounding spaces. Added "sp_after_semi_for_empty=Add" to uncrustify.conf to leave a few for() statements alone that look better the way they are. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@openvpn.net> Message-Id: <20181130135641.11533-3-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17970.html Signed-off-by: David Sommerseth <davids@openvpn.net>
Diffstat (limited to 'src/openvpn/env_set.h')
-rw-r--r--src/openvpn/env_set.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvpn/env_set.h b/src/openvpn/env_set.h
index 5dc3348..cf8415c 100644
--- a/src/openvpn/env_set.h
+++ b/src/openvpn/env_set.h
@@ -94,13 +94,15 @@ void env_set_print(int msglevel, const struct env_set *es);
void env_set_inherit(struct env_set *es, const struct env_set *src);
/* returns true if environmental variable name starts with 'password' */
-static inline bool is_password_env_var(const char *str)
+static inline bool
+is_password_env_var(const char *str)
{
return (strncmp(str, "password", 8) == 0);
}
/* returns true if environmental variable safe to print to log */
-static inline bool env_safe_to_print(const char *str)
+static inline bool
+env_safe_to_print(const char *str)
{
#ifndef UNSAFE_DEBUG
if (is_password_env_var(str))