]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Remove do_init_socket_2 and do_init_socket_1 wrapper function
authorArne Schwabe <arne@rfc2549.org>
Thu, 1 Apr 2021 13:13:37 +0000 (15:13 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 2 Apr 2021 15:38:49 +0000 (17:38 +0200)
commit343b61195b76796632b8948674fd1068889bb6c7
tree708ec3380082ff0ed0c104475d6710f58eaf955d
parent9fe0b2c287609cefe79aec30ff33f7a65cafd684
Remove do_init_socket_2 and do_init_socket_1 wrapper function

These two function basically just pass a number of fields of context to
the linit_socket_init1/2 functions. This wrapper add little to no value
in understanding the code, especially since the linit_socket_init1 will
just copy them to yet another structure.

Remove these wrapper functions and pass context directly to the called
function.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210401131337.3684-15-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21954.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c
src/openvpn/socket.c
src/openvpn/socket.h