]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun: Fix compiler warnings
authorDavid Sommerseth <davids@openvpn.net>
Fri, 11 Nov 2016 13:11:13 +0000 (14:11 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 16 Nov 2016 17:00:54 +0000 (18:00 +0100)
commit7756043c01dd0b23252682f085f3d9a1f4b057de
tree1d7d9877185dfdbe24b73767a455a5c09910a27d
parent4066f1ce602c2404fa4d80ba237e9d24d79e26cd
tun: Fix compiler warnings

Fixes two compiler warnings identified by using CFLAGS=-O2

1) ifconfig_ipv6_remote is only used on Solaris, move the
   declaration and assignment of this variable into the
   TARGET_SOLARIS block.

2) Linux have it's own open_tun() function and does not
   depend on open_tun_generic() at all.  So exclude
   open_tun_generic() if TARGET_LINUX is defined.

v2 - Move changes from 1) into the proper if() block
     directly
   - Fix up incorrect comment tags related to changes in 2)

v3 - Minor coding style adjustments and change WIN32 to _WIN32

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1479165185-11730-1-git-send-email-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13063.html
src/openvpn/tun.c