From 1be7caa34ab084dc0c244e5eef23ed07f9b9c8c5 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 22 Mar 2020 00:56:07 +0100 Subject: [PATCH] Linux kernel coding style --- src/ipv4.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ipv4.c b/src/ipv4.c index 78019eaa..a41e6505 100644 --- a/src/ipv4.c +++ b/src/ipv4.c @@ -1245,11 +1245,12 @@ int ipv4_del_nameservers_from_resolv_conf(struct tunnel *tunnel) #if HAVE_RESOLVCONF if (tunnel->config->use_resolvconf && (access(RESOLVCONF_PATH, F_OK) == 0)) { - int resolvconf_call_len - = strlen(RESOLVCONF_PATH) - + 20 - + strlen(tunnel->ppp_iface); - char *resolvconf_call = malloc(resolvconf_call_len); + int resolvconf_call_len; + char *resolvconf_call; + + resolvconf_call_len = strlen(RESOLVCONF_PATH) + 20 + + strlen(tunnel->ppp_iface); + resolvconf_call = malloc(resolvconf_call_len); if (resolvconf_call == NULL) { log_warn("Could not create command to run resolvconf (%s).\n", strerror(errno));