[Openvpn-devel] tun.c: remove unused variable

Message ID 20210403155937.32330-1-a@unstable.cc
State Accepted
Headers show
Series [Openvpn-devel] tun.c: remove unused variable | expand

Commit Message

Antonio Quartulli April 3, 2021, 4:59 a.m. UTC
From: Antonio Quartulli <antonio@openvpn.net>

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
---
 src/openvpn/tun.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Selva Nair April 3, 2021, 5:27 a.m. UTC | #1
Hi

On Sat, Apr 3, 2021 at 12:01 PM Antonio Quartulli <a@unstable.cc> wrote:
>
> From: Antonio Quartulli <antonio@openvpn.net>
>
> Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
> ---
>  src/openvpn/tun.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
> index 6b7c8ef1..60a3a179 100644
> --- a/src/openvpn/tun.c
> +++ b/src/openvpn/tun.c
> @@ -281,7 +281,6 @@ out:
>  static bool
>  do_set_mtu_service(const struct tuntap *tt, const short family, const int mtu)
>  {
> -    DWORD len;
>      bool ret = false;
>      ack_message_t ack;
>      struct gc_arena gc = gc_new();

This has been lurking around in the build logs for too long. Good riddance.
And, glad to see more eyes on the pariah windows-only code paths :)

Acked-by: selva.nair@gmail.com
Gert Doering April 3, 2021, 5:34 a.m. UTC | #2
Your patch has been applied to the master branch.

commit 411fc52eb19d359f1a698a884667cd7282db0b3c
Author: Antonio Quartulli
Date:   Sat Apr 3 17:59:37 2021 +0200

     tun.c: remove unused variable

     Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
     Acked-by: Selva Nair <selva.nair@gmail.com>
     Message-Id: <20210403155937.32330-1-a@unstable.cc>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22014.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
index 6b7c8ef1..60a3a179 100644
--- a/src/openvpn/tun.c
+++ b/src/openvpn/tun.c
@@ -281,7 +281,6 @@  out:
 static bool
 do_set_mtu_service(const struct tuntap *tt, const short family, const int mtu)
 {
-    DWORD len;
     bool ret = false;
     ack_message_t ack;
     struct gc_arena gc = gc_new();