diff options
author | Lev Stipakov | 2023-01-09 13:30:46 +0200 |
---|---|---|
committer | Gert Doering | 2023-01-09 12:37:07 +0100 |
commit | a0eb1f764df39d9447b666e5a2cbd3aa01b41983 (patch) | |
tree | 84b163511d85639a22059b8ec2a216efd519e01d /src/openvpn/tun.h | |
parent | 3a7257925791a086c1ac88362a8eb422be518b14 (diff) | |
download | openvpn-a0eb1f764df39d9447b666e5a2cbd3aa01b41983.zip openvpn-a0eb1f764df39d9447b666e5a2cbd3aa01b41983.tar.gz |
tun: move print_windows_driver() out of tun.h
We got warnings from MinGW about function being defined
but not used when compiling modules which include tun.h.
This function is not defined as inline, so its definition
should not be in header. Since this is not a performance
critical, no need to make it inline.
Leave declaration in tun.h and move definition to tun.c.
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230109113046.1678-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25923.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/tun.h')
-rw-r--r-- | src/openvpn/tun.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h index 24d5267..ed22770 100644 --- a/src/openvpn/tun.h +++ b/src/openvpn/tun.h @@ -661,24 +661,8 @@ tuntap_is_dco_win_timeout(struct tuntap *tt, int status) return tuntap_is_dco_win(tt) && (status < 0) && (openvpn_errno() == ERROR_NETNAME_DELETED); } -static const char * -print_windows_driver(enum windows_driver_type windows_driver) -{ - switch (windows_driver) - { - case WINDOWS_DRIVER_TAP_WINDOWS6: - return "tap-windows6"; - - case WINDOWS_DRIVER_WINTUN: - return "wintun"; - - case WINDOWS_DRIVER_DCO: - return "ovpn-dco"; - - default: - return "unspecified"; - } -} +const char * +print_windows_driver(enum windows_driver_type windows_driver); #else /* ifdef _WIN32 */ |