can't happen error should be -3 not -1

master
leitner 21 years ago
parent 1de7812da2
commit 3ec95df805

@ -30,7 +30,7 @@ int64 iob_send(int64 s,io_batch* b) {
total=0; total=0;
for (;;) { for (;;) {
if (!(e=array_get(&b->b,sizeof(io_entry),b->next))) if (!(e=array_get(&b->b,sizeof(io_entry),b->next)))
return -1; /* can't happen error */ return -3; /* can't happen error */
#ifdef BSD_SENDFILE #ifdef BSD_SENDFILE
/* BSD sendfile can send headers and trailers. If we run on BSD, we /* BSD sendfile can send headers and trailers. If we run on BSD, we
* should try to exploit this. */ * should try to exploit this. */

Loading…
Cancel
Save