tOnly complain if errno is not EWOULDBLOCK - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 78223c1ef2ef456e85ef3c086b5a3a070a89fac3
(DIR) parent 4c3351ec603c8d8b0ea9ad68d627c228149b597d
(HTM) Author: sin <sin@2f30.org>
Date: Wed, 15 Oct 2014 12:29:14 +0100
Only complain if errno is not EWOULDBLOCK
Diffstat:
M ratox.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/ratox.c b/ratox.c
t@@ -942,7 +942,8 @@ sendfriendfile(struct friend *f)
break;
}
if (n == -1) {
- printf("fiforead in sendfriendfile failed. fix this. errno = %d\n", errno);
+ if (errno != EWOULDBLOCK)
+ weprintf("fiforead:");
break;
}
/* Store transfer size in case we can't send it right now */