OSSP CVS Repository

ossp - Difference in ossp-pkg/sio/sio_test.c versions 1.16 and 1.17
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sio/sio_test.c 1.16 -> 1.17

--- sio_test.c   2003/02/06 12:50:53     1.16
+++ sio_test.c   2003/02/06 13:51:54     1.17
@@ -87,6 +87,10 @@
 static int test_sio_hello_client(ts_test_t *, int, int);
 static int test_sio_hello_server(ts_test_t *, int, int);
 
+typedef int (*func)(ts_test_t *, int, int);
+static void session(ts_test_t *, func, func, int);
+
+static
 sio_rc_t sreadloop(sio_t *sio, char *buf, size_t len, size_t *actualp)
 {
     sio_rc_t rc = SIO_OK;
@@ -108,7 +112,7 @@
     return rc;
 }
 
-typedef int (*func)(ts_test_t *, int, int);
+static
 void session(ts_test_t *_t, func client, func server, int duplex)
 {
     pid_t child;
@@ -312,7 +316,7 @@
 
     EVAL0(sio_destroy_stage(sio, sios_buffer));
     EVAL0(sio_destroy_stage(sio, sios_fd));
-    EVAL0(rc = sio_destroy(sio));
+    EVAL0(sio_destroy(sio));
 }
 
 static
@@ -653,7 +657,7 @@
      */
     EVAL0(sio_detach(C_sio, C_sios_sio));
     EVAL0(sio_destroy_stage(C_sio, C_sios_sio));
-    EVAL0(rc = sio_destroy(C_sio));
+    EVAL0(sio_destroy(C_sio));
 
     /*
      * destroy ODD stream
@@ -1210,7 +1214,7 @@
     bio = get_client_bio();
     if (bio == NULL) {
             ts_test_fail(TS_CTX, "cannot create client BIO\n");
-            return;
+            return -1;
     }
 
     EVAL0(sio_create(&sio));
@@ -1293,7 +1297,7 @@
     bio = get_server_bio();
     if (bio == NULL) {
             ts_test_fail(TS_CTX, "cannot create server BIO\n");
-            return;
+            return -1;
     }
 
     EVAL0(sio_create(&sio));

CVSTrac 2.0.1