diff options
author | Steffan Karger | 2017-01-14 15:10:20 +0100 |
---|---|---|
committer | David Sommerseth | 2017-01-18 20:51:27 +0100 |
commit | 4cd4899e8e80efae03c584a760fd107251735723 (patch) | |
tree | 2ea0667be64598f559d8028e1712f8917762809c /src/openvpn/otime.h | |
parent | 7b02cc2aa8318dc8f2677064dadcbec295b2f937 (diff) | |
download | openvpn-4cd4899e8e80efae03c584a760fd107251735723.zip openvpn-4cd4899e8e80efae03c584a760fd107251735723.tar.gz |
More broadly enforce Allman style and braces-around-conditionals
We want { and } aligned, which means also adding a newline between each
for() and {, while() and {, etc.
Also, we agreed to always use braces with conditionals. The previous
uncrustify config added these for if()s, now also add these for while()
and for().
Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1484403020-6857-1-git-send-email-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13875.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
Diffstat (limited to 'src/openvpn/otime.h')
-rw-r--r-- | src/openvpn/otime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvpn/otime.h b/src/openvpn/otime.h index eede63d..ad066b6 100644 --- a/src/openvpn/otime.h +++ b/src/openvpn/otime.h @@ -289,7 +289,8 @@ tv_within_sigma(const struct timeval *t1, const struct timeval *t2, unsigned int * called again. */ static inline void -interval_earliest_wakeup(interval_t *wakeup, time_t at, time_t current) { +interval_earliest_wakeup(interval_t *wakeup, time_t at, time_t current) +{ if (at > current) { const interval_t delta = (interval_t) (at - current); |