OSSP CVS Repository

ossp - Check-in [2734]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2734
Date: 2002-Nov-05 16:57:50 (local)
2002-Nov-05 15:57:50 (UTC)
User:mlelstv
Branch:
Comment: fix typos

PR: Submitted by: Reviewed by: Approved by: Obtained from:

Tickets:
Inspections:
Files:
ossp-pkg/sio/sio_fd.c      1.3 -> 1.4     4 inserted, 4 deleted

ossp-pkg/sio/sio_fd.c 1.3 -> 1.4

--- 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;
 }

CVSTrac 2.0.1