OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ch_socket.c versions 1.9 and 1.10
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ch_socket.c 1.9 -> 1.10

--- l2_ch_socket.c       2001/09/04 15:44:48     1.9
+++ l2_ch_socket.c       2001/09/04 19:18:49     1.10
@@ -95,7 +95,7 @@
 } l2_ch_socket_t;
 
 /* create channel */
-static int hook_create(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_create(l2_context_t *ctx, l2_channel_t *ch)
 {
     l2_ch_socket_t *cfg = NULL;
 
@@ -115,7 +115,7 @@
 }
 
 /* configure channel */
-static int hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
+static l2_result_t hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
 {
     l2_ch_socket_t *cfg;
     l2_param_t pa[3];
@@ -135,7 +135,7 @@
 }
 
 /* open channel */
-static int hook_open(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_open(l2_context_t *ctx, l2_channel_t *ch)
 {
     l2_ch_socket_t      *cfg;
     struct hostent      *pHostentry;
@@ -191,7 +191,7 @@
 }
 
 /* write to channel */
-static int hook_write(l2_context_t *ctx, l2_channel_t *ch, 
+static l2_result_t hook_write(l2_context_t *ctx, l2_channel_t *ch, 
                       const char *buf, size_t buf_size)
 {
     l2_ch_socket_t *cfg;
@@ -210,7 +210,7 @@
 }
 
 /* flush channel */
-static int hook_flush(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_flush(l2_context_t *ctx, l2_channel_t *ch)
 {
     /* NOP for this channel, because Unix I/O sockets are unbuffered! */
 
@@ -218,7 +218,7 @@
 }
 
 /* close channel */
-static int hook_close(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_close(l2_context_t *ctx, l2_channel_t *ch)
 {
     l2_ch_socket_t *cfg;
 
@@ -236,7 +236,7 @@
 }
 
 /* destroy channel */
-static int hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
 {
     /* parameter checks */
     if (ctx->vp == NULL) 

CVSTrac 2.0.1