From cfe6558d4ba4f572311aeafd62737f6f2692ad86 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 25 Mar 2012 14:00:21 +0100 Subject: [PATCH] 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. --- src/vde_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5