diff options
author | Arne Schwabe | 2020-06-26 14:53:32 +0200 |
---|---|---|
committer | Gert Doering | 2020-06-26 14:58:47 +0200 |
commit | c1ff8f247f91c88a2df5502eeedf42857f9a6831 (patch) | |
tree | ab830fc46a787442e229ec39411b1afe7dc18a51 /src/openvpn/pool.c | |
parent | c67e93b25208be2e893473bea4aabccbde914f47 (diff) | |
download | openvpn-c1ff8f247f91c88a2df5502eeedf42857f9a6831.zip openvpn-c1ff8f247f91c88a2df5502eeedf42857f9a6831.tar.gz |
Reformat files using uncrustify
Some of the commits, especially engine have not strictly used uncrustify
clean code. Rerun uncrustify to make them compliant again.
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200626125332.15385-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20142.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/pool.c')
-rw-r--r-- | src/openvpn/pool.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/openvpn/pool.c b/src/openvpn/pool.c index 370f6af..1f74ac5 100644 --- a/src/openvpn/pool.c +++ b/src/openvpn/pool.c @@ -310,20 +310,20 @@ ifconfig_pool_acquire(struct ifconfig_pool *pool, in_addr_t *local, in_addr_t *r switch (pool->ipv4.type) { case IFCONFIG_POOL_30NET: - { - in_addr_t b = pool->ipv4.base + (i << 2); - *local = b + 1; - *remote = b + 2; - break; - } + { + in_addr_t b = pool->ipv4.base + (i << 2); + *local = b + 1; + *remote = b + 2; + break; + } case IFCONFIG_POOL_INDIV: - { - in_addr_t b = pool->ipv4.base + i; - *local = 0; - *remote = b; - break; - } + { + in_addr_t b = pool->ipv4.base + i; + *local = 0; + *remote = b; + break; + } default: ASSERT(0); @@ -683,7 +683,9 @@ ifconfig_pool_read(struct ifconfig_pool_persist *persist, struct ifconfig_pool * * was not valid */ if (h < 0) + { h = h6; + } } } |