Skip to content

Commit

Permalink
networking: add missing brackets
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ordex authored and cron2 committed Sep 29, 2021
1 parent 98f524c commit cb5d294
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/openvpn/networking_iproute2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit cb5d294

Please sign in to comment.