[Openvpn-devel,2/2] route.c: fix windows build by removing mismatching function parameter

Message ID 20190617124110.30907-2-a@unstable.cc
State Accepted
Headers show
Series [Openvpn-devel,1/2] t_net.sh: fixes for the networking test script | expand

Commit Message

Antonio Quartulli June 17, 2019, 2:41 a.m. UTC
From: Antonio Quartulli <antonio@openvpn.net>

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


Gert Doering June 17, 2019, 7:36 a.m. UTC | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

"Because it's the quick fix, reverting one too-eager argument change while
we do not have the rest of the get_default_gateway_ipv6() stuff in-tree"

I have not test-compiled it, but it looks very reasonable :-)

Your patch has been applied to the master branch.

commit 22020547cbfa4a7199925bc4f32d95e84c504af2
Author: Antonio Quartulli
Date:   Mon Jun 17 14:41:10 2019 +0200

     route.c: fix windows build by removing mismatching function parameter

     Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20190617124110.30907-2-a@unstable.cc>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18551.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>

kind regards,

Gert Doering


diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index c92a1343..4cdc4a9f 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -2799,7 +2799,7 @@  windows_route_find_if_index(const struct route_ipv4 *r, const struct tuntap *tt)
 get_default_gateway_ipv6(struct route_ipv6_gateway_info *rgi6,
-                         const struct in6_addr *dest, openvpn_net_ctx_t *ctx)
+                         const struct in6_addr *dest)
     struct gc_arena gc = gc_new();
     MIB_IPFORWARD_ROW2 BestRoute;