Ticket #137: 0001-Additional-Visual-Studio-2008-build-fixes-to-tun.c.patch

File 0001-Additional-Visual-Studio-2008-build-fixes-to-tun.c.patch, 1.2 KB (added by Samuli Seppänen, 13 years ago)
  • tun.c

    From 9321f760614449a51bba407712d060e8041921d2 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Samuli=20Sepp=C3=A4nen?= <samuli@openvpn.net>
    Date: Thu, 26 May 2011 16:41:55 +0300
    Subject: [PATCH] Additional Visual Studio 2008 build fixes to tun.c
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    Signed-off-by: Gert Doering <gert@greenie.muc.de>
    Tested-by: Samuli Seppänen <samuli@openvpn.net>
    Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
    ---
     tun.c |    3 ++-
     1 files changed, 2 insertions(+), 1 deletions(-)
    
    diff --git a/tun.c b/tun.c
    index 8cdd248..3cf2e3e 100644
    a b close_tun (struct tuntap *tt) 
    48654865    {
    48664866      if ( tt->ipv6 && tt->did_ifconfig_ipv6_setup )
    48674867        {
     4868          const char *ifconfig_ipv6_local;
    48684869          struct argv argv;
    48694870          argv_init (&argv);
    48704871
    close_tun (struct tuntap *tt) 
    48724873          delete_route_connected_v6_net(tt, NULL);
    48734874
    48744875          /* netsh interface ipv6 delete address \"%s\" %s */
    4875           const char * ifconfig_ipv6_local = print_in6_addr (tt->local_ipv6, 0, &gc);
     4876          ifconfig_ipv6_local = print_in6_addr (tt->local_ipv6, 0, &gc);
    48764877          argv_printf (&argv,
    48774878                    "%s%sc interface ipv6 delete address %s %s",
    48784879                     get_win_sys_path(),