]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
networking: add missing brackets
authorAntonio Quartulli <a@unstable.cc>
Wed, 29 Sep 2021 11:59:05 +0000 (13:59 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 29 Sep 2021 12:03:13 +0000 (14:03 +0200)
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 <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/networking_iproute2.c

index c6623b192d1fbe8799150752fc387e4ef066a749..67b8894bc1ba565cbf9bcce940b113f19ec79609 100644 (file)
@@ -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);