OSSP CVS Repository

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

Check-in Number: 2740
Date: 2002-Nov-05 18:30:38 (local)
2002-Nov-05 17:30:38 (UTC)
User:mlelstv
Branch:
Comment: utilize default action

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

Tickets:
Inspections:
Files:
ossp-pkg/sio/sio_buffer.c      1.2 -> 1.3     6 inserted, 11 deleted

ossp-pkg/sio/sio_buffer.c 1.2 -> 1.3

--- sio_buffer.c 2002/11/05 15:52:21     1.2
+++ sio_buffer.c 2002/11/05 17:30:38     1.3
@@ -141,8 +141,7 @@
  */
 static
 sio_rc_t buffer_inout(sio_t *sio, al_t *al, private_t *my,
-                      al_t *buf, size_t size,
-                      sio_rc_t up, sio_rc_t down)
+                      al_t *buf, size_t size)
 {
     size_t avail, data, needed;
     al_rc_t arc;
@@ -154,7 +153,7 @@
 
     avail = al_bytes(buf);
     if (avail <= 0)
-        return down;
+        return SIO_OK;
 
     arc = al_firstlabel(buf, 0, 1, AL_FORWARD, NULL, &label);
     if (arc != AL_OK)
@@ -176,10 +175,10 @@
         if (data >= size)
             data = size;
         al_splice(buf, 0, data, NULL, al);
-        return up;
+        return SIO_OK;
     }
 
-    return down;
+    return SIO_OK;
 }
 
 static
@@ -187,9 +186,7 @@
 {
     private_t *my = (private_t *)u;
 
-    return buffer_inout(sio, al, my,
-                        my->input, my->inputsize,
-                        SIO_DOWNSTREAM, SIO_UPSTREAM);
+    return buffer_inout(sio, al, my, my->input, my->inputsize);
 }
 
 static
@@ -197,9 +194,7 @@
 {
     private_t *my = (private_t *)u;
 
-    return buffer_inout(sio, al, my,
-                        my->output, my->outputsize,
-                        SIO_UPSTREAM, SIO_DOWNSTREAM);
+    return buffer_inout(sio, al, my, my->output, my->outputsize);
 }
 
 sio_module_t sio_module_buffer = {

CVSTrac 2.0.1