X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=libatalk%2Fdsi%2Fdsi_stream.c;h=c130eb90a33fb40b70776363a2d8f5a48c8da453;hp=98c9396f77cb58157867b907b0082618b2d9e1a8;hb=88436a544d0c87299a3417432b15e897f1ea15ec;hpb=f54fa0ec9e037fb1ee3a415031c5c33d36a183b6 diff --git a/libatalk/dsi/dsi_stream.c b/libatalk/dsi/dsi_stream.c index 98c9396f..c130eb90 100644 --- a/libatalk/dsi/dsi_stream.c +++ b/libatalk/dsi/dsi_stream.c @@ -400,7 +400,7 @@ ssize_t dsi_stream_read_file(DSI *dsi, const int fromfd, off_t offset, const siz #endif /* defined(SOLARIS) || defined(FREEBSD) */ #endif /* HAVE_SENDFILEV */ - if (dsi_peek(dsi)) { + if (dsi_peek(dsi) != 0) { ret = -1; goto exit; } @@ -533,7 +533,7 @@ int dsi_stream_send(DSI *dsi, void *buf, size_t length) break; else if (len < 0) { /* error */ if (errno == EAGAIN || errno == EWOULDBLOCK) { - if (!dsi_peek(dsi)) { + if (dsi_peek(dsi) != 0) { continue; } }