#endif /* defined(SOLARIS) || defined(FREEBSD) */
#endif /* HAVE_SENDFILEV */
- if (dsi_peek(dsi)) {
+ if (dsi_peek(dsi) != 0) {
ret = -1;
goto exit;
}
break;
else if (len < 0) { /* error */
if (errno == EAGAIN || errno == EWOULDBLOCK) {
- if (!dsi_peek(dsi)) {
+ if (dsi_peek(dsi) != 0) {
continue;
}
}