OSSP CVS Repository

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

Check-in Number: 2735
Date: 2002-Nov-05 17:05:25 (local)
2002-Nov-05 16:05:25 (UTC)
User:mlelstv
Branch:
Comment: eat all output, even when write failed. Otherwise sio_buffer will insist until we deliver...

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

Tickets:
Inspections:
Files:
ossp-pkg/sio/sio_fd.c      1.4 -> 1.5     3 inserted, 2 deleted

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

--- sio_fd.c     2002/11/05 15:57:50     1.4
+++ sio_fd.c     2002/11/05 16:05:25     1.5
@@ -156,7 +156,8 @@
 {
     private_t *my = (private_t *)u;
     char   *p;
-    size_t n, actual;
+    size_t n;
+    int actual;
 
     p = al_chunk_ptr(alc, 0);
     n = al_chunk_len(alc);
@@ -184,7 +185,7 @@
     if (arc != AL_OK)
         return SIO_DOWNSTREAM;
 
-    arc = al_splice(al, 0, my->written, NULL, NULL);
+    arc = al_splice(al, 0, al_bytes(al), NULL, NULL);
     if (arc != AL_OK)
         return SIO_DOWNSTREAM;
 

CVSTrac 2.0.1