]> git.ipfire.org Git - thirdparty/openvpn.git/commit
options: don't export local function pre_connect_save()
authorAntonio Quartulli <a@unstable.cc>
Mon, 11 Jul 2022 12:23:48 +0000 (14:23 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 13 Jul 2022 10:24:57 +0000 (12:24 +0200)
commitad085464b15d63324846d0a5151141f58ccb5a34
tree19660a7d31ef8a2e0bc716eff9cae9b24a71d40b
parentd5315a5d7400a26f1113bbc44766d49dd0c3688f
options: don't export local function pre_connect_save()

The pre_connect_save() function is not used outside of options.c,
therefore it should not be exported.

Make it static and move definition before its invocation.
Move also pre_connect_restore() along with it in order to keep the two
close to each other.

Cc: Arne Schwabe <arne@rfc2549.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Heiko Hund <heiko@ist.eigentlich.net>
Message-Id: <20220711122348.8756-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24666.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c
src/openvpn/options.h