--- sio_fd.c 2002/11/05 15:52:21 1.3
+++ sio_fd.c 2002/11/05 15:57:50 1.4
@@ -139,10 +139,10 @@
actual = read(my->fd, buf->mem, buf->size);
if (actual < 0) {
- al_appendbytes(al, &my->eof, sizeof(my->eof), my->error_label);
+ al_append_bytes(al, &my->eof, sizeof(my->eof), my->error_label);
return SIO_DOWNSTREAM;
} else if (actual == 0) {
- al_appendbytes(al, &my->error, sizeof(my->error), my->eof_label);
+ al_append_bytes(al, &my->error, sizeof(my->error), my->eof_label);
return SIO_DOWNSTREAM;
}
@@ -182,11 +182,11 @@
arc = al_traverse_cb(al, 0, n, AL_FORWARD, my->data_label,
fd_output_chunk, u);
if (arc != AL_OK)
- return SIO_ERR_DOWNSTREAM;
+ return SIO_DOWNSTREAM;
arc = al_splice(al, 0, my->written, NULL, NULL);
if (arc != AL_OK)
- return SIO_ERR_DOWNSTREAM;
+ return SIO_DOWNSTREAM;
return SIO_DOWNSTREAM;
}
|