From: Joseph C. Lehner Date: Sat, 30 Jan 2016 07:02:50 +0000 (+0200) Subject: Fix return value on timeout X-Git-Tag: v0.9~78 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1007bad4767cd8716a6523d109f758d6847be520;p=oweals%2Fnmrpflash.git Fix return value on timeout --- diff --git a/ethsock.c b/ethsock.c index 40d992c..5b05bc7 100644 --- a/ethsock.c +++ b/ethsock.c @@ -143,7 +143,7 @@ ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len) perror("select"); return -1; } else if (status == 0) { - return 1; + return 0; } }