From: Antonio Quartulli
Date: Wed, 29 Sep 2021 11:59:05 +0000 (+0200)
Subject: networking: add missing brackets
X-Git-Tag: v2.6_beta1~426
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb5d29461e6e734a2250b984b8423d39f7b9ddaa;p=thirdparty%2Fopenvpn.git
networking: add missing brackets
Our codestyle demands having brackets also around if-blocks made up
by one line only.
In patch "networking: add and implement net_addr_ll_set() API" this
rule was not respected and a new one-line-if-block was added with no
brackets.
Fix this by adding the related brackets as needed.
Signed-off-by: Antonio Quartulli
Acked-by: Gert Doering
Message-Id: <20210929115905.1281-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22908.html
Signed-off-by: Gert Doering
---
diff --git a/src/openvpn/networking_iproute2.c b/src/openvpn/networking_iproute2.c
index c6623b192..67b8894bc 100644
--- a/src/openvpn/networking_iproute2.c
+++ b/src/openvpn/networking_iproute2.c
@@ -107,7 +107,9 @@ net_addr_ll_set(openvpn_net_ctx_t *ctx, const openvpn_net_iface_t *iface,
argv_msg(M_INFO, &argv);
if (!openvpn_execve_check(&argv, ctx->es, M_WARN,
"Linux ip link set addr failed"))
+ {
ret = -1;
+ }
argv_free(&argv);