From: Guus Sliepen Date: Sun, 25 Mar 2012 13:00:21 +0000 (+0100) Subject: Fix return value type of vde_send(). X-Git-Tag: release-1.0.18~5 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=cfe6558d4ba4f572311aeafd62737f6f2692ad86;p=tinc Fix return value type of vde_send(). The libvdeplug_dyn.h header file incorrectly declares the return type of vde_send() to size_t, while in reality it is ssize_t. --- diff --git a/src/vde_device.c b/src/vde_device.c index 258945ed..1f1d8cf8 100644 --- a/src/vde_device.c +++ b/src/vde_device.c @@ -114,7 +114,7 @@ static bool read_packet(vpn_packet_t *packet) { } static bool write_packet(vpn_packet_t *packet) { - if(plug.vde_send(conn, packet->data, packet->len, 0) < 0) { + if((ssize_t)plug.vde_send(conn, packet->data, packet->len, 0) < 0) { if(errno != EINTR && errno != EAGAIN) { logger(LOG_ERR, "Can't write to %s %s: %s", device_info, device, strerror(errno)); running = false;