From 057ccb8da6e90e948924cd458e150d2891ac46b9 Mon Sep 17 00:00:00 2001 From: thorkill Date: Sun, 15 May 2016 19:12:41 +0200 Subject: [PATCH] recvfrom return size_t not len --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index a672e26f..c6d2e0dd 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -1630,7 +1630,7 @@ void handle_incoming_slpd_data(void *data, int flags) { logger(DEBUG_SCARY_THINGS, LOG_INFO, "Receiving SLPD packet"); - int len = recvfrom(ls->udp.fd, (void *)&pkt, MAXSIZE, 0, &addr.sa, &addrlen); + size_t len = recvfrom(ls->udp.fd, (void *)&pkt, MAXSIZE, 0, &addr.sa, &addrlen); if(len <= 0 || len > MAXSIZE) { if(!sockwouldblock(sockerrno))