X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fvde_device.c;h=1f1d8cf8c9861d99ef16c3ec9031e2b11755b724;hp=258945edb37b628959d8346d75bda908eaab587d;hb=cfe6558d4ba4f572311aeafd62737f6f2692ad86;hpb=1b2846d907adfc8472fc9da0c951c3243c7ee143 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;