From: Guus Sliepen Date: Sun, 25 Mar 2012 14:17:50 +0000 (+0100) Subject: Fix return type of vde_recv() as well. X-Git-Tag: release-1.0.18~2 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=f71ce341800739c7cdee01d7cf025e7492da22ac;p=tinc Fix return type of vde_recv() as well. In this case it is not really necessary as the conversion to int will already take care of ensuring the return value is treated as signed. --- diff --git a/src/vde_device.c b/src/vde_device.c index 1f1d8cf8..e69ae802 100644 --- a/src/vde_device.c +++ b/src/vde_device.c @@ -99,7 +99,7 @@ static void close_device(void) { } static bool read_packet(vpn_packet_t *packet) { - int lenin = plug.vde_recv(conn, packet->data, MTU, 0); + int lenin = (ssize_t)plug.vde_recv(conn, packet->data, MTU, 0); if(lenin <= 0) { logger(LOG_ERR, "Error while reading from %s %s: %s", device_info, device, strerror(errno)); running = false;