]> git.ipfire.org Git - thirdparty/openvpn.git/commit
socket: Change return types of link_socket_write* to ssize_t
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 18 Sep 2024 20:48:44 +0000 (22:48 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 18 Sep 2024 21:01:24 +0000 (23:01 +0200)
commit2cc77debf0221fa0cef3ea470c1328d25397d021
treed81b8f0c9d8e53a001ffb6e24c6a6aba2ea06708
parentb59620f24f5bc853e2aa92943f14abf74aa81511
socket: Change return types of link_socket_write* to ssize_t

This is the actual return value of send/sendto/sendmsg.
We will leave it to the single caller of link_socket_write()
to decide how to map that to the int buffer world. For now
just cast it explicitly.

Change-Id: I7852c06d331326c1dbab7b642254c0c00d4cebb8
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240918204844.2820-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29323.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/forward.c
src/openvpn/socket.c
src/openvpn/socket.h