mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 03:52:28 +02:00
Fix types in WIN32 socket_listen_accept()
SOCKET_UNDEFINED is of type socket_descriptor_t (or SOCKET, in MS types), so new_sd should be too. Also, the return value of this function is always stored in a socket_descriptor_t variable, so it should return that type (which makes sense now, because it returns new_sd) instead of an int. Signed-off-by: Steffan Karger <steffan.karger@fox-it.com> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1489056455-6004-1-git-send-email-steffan.karger@fox-it.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14239.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
85ac77c90b
commit
33e1a869fc
@ -1146,7 +1146,7 @@ tcp_connection_established(const struct link_socket_actual *act)
|
||||
gc_free(&gc);
|
||||
}
|
||||
|
||||
static int
|
||||
static socket_descriptor_t
|
||||
socket_listen_accept(socket_descriptor_t sd,
|
||||
struct link_socket_actual *act,
|
||||
const char *remote_dynamic,
|
||||
@ -1158,7 +1158,7 @@ socket_listen_accept(socket_descriptor_t sd,
|
||||
struct gc_arena gc = gc_new();
|
||||
/* struct openvpn_sockaddr *remote = &act->dest; */
|
||||
struct openvpn_sockaddr remote_verify = act->dest;
|
||||
int new_sd = SOCKET_UNDEFINED;
|
||||
socket_descriptor_t new_sd = SOCKET_UNDEFINED;
|
||||
|
||||
CLEAR(*act);
|
||||
socket_do_listen(sd, local, do_listen, true);
|
||||
|
Loading…
Reference in New Issue
Block a user