]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun.c: undo_ifconfig_ipv4/6 remove useless gc argument
authorAntonio Quartulli <antonio@openvpn.net>
Mon, 5 Aug 2019 09:25:27 +0000 (11:25 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 17 Aug 2019 18:40:21 +0000 (20:40 +0200)
commite64d9c47d580427ed5e3d176dbcb7aa2ea55c4ba
tree7bbb2de78ab7b5f255b5f7878574d7acb2b13213
parent59fde742a113a450fe65a4d6b2cb9122425c1920
tun.c: undo_ifconfig_ipv4/6 remove useless gc argument

With the new networking APIs, each implementation handles garbage
collection internally and therefore does not require a gc object to be
provided by the outer layer.

However, there are a few cases where a garbage collector is still required.
In close_tun() move the declaration and cleanup of gc to the
area where it is used and simplify the surrounding code a bit.

While at it, fix a typo in a nearby ifdef comment.

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