Skip to content

Commit cb5d294

Browse files
ordexcron2
authored andcommitted
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 <[email protected]> Acked-by: Gert Doering <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg22908.html Signed-off-by: Gert Doering <[email protected]>
1 parent 98f524c commit cb5d294

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/openvpn/networking_iproute2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ net_addr_ll_set(openvpn_net_ctx_t *ctx, const openvpn_net_iface_t *iface,
107107
argv_msg(M_INFO, &argv);
108108
if (!openvpn_execve_check(&argv, ctx->es, M_WARN,
109109
"Linux ip link set addr failed"))
110+
{
110111
ret = -1;
112+
}
111113

112114
argv_free(&argv);
113115

0 commit comments

Comments
 (0)