]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun: move print_windows_driver() out of tun.h
authorLev Stipakov <lev@openvpn.net>
Mon, 9 Jan 2023 11:30:46 +0000 (13:30 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 9 Jan 2023 11:38:51 +0000 (12:38 +0100)
commit9dd0bfb5983fdfbbb9e1fe2195642fbc4cc5f200
treebb1ad7ced649e1fbaafd662280f3e85889bc3a0c
parentb3b1436955b9db8e557fc58b7e37ba3a881109a6
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.

Github: fixes OpenVPN/openvpn#215

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>
(cherry picked from commit a0eb1f764df39d9447b666e5a2cbd3aa01b41983)
src/openvpn/tun.c
src/openvpn/tun.h