OSSP CVS Repository

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

Check-in Number: 858
Date: 2001-Sep-05 12:59:37 (local)
2001-Sep-05 10:59:37 (UTC)
User:ms
Branch:
Comment: Bring into conformance with new l2_result_t channel handler return standard.
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_channel.c      1.12 -> 1.13     5 inserted, 5 deleted

ossp-pkg/l2/l2_channel.c 1.12 -> 1.13

--- l2_channel.c 2001/09/04 15:41:17     1.12
+++ l2_channel.c 2001/09/05 10:59:37     1.13
@@ -75,7 +75,7 @@
         return L2_ERROR;
     if (ch->state != L2_CHSTATE_CREATED)
         return L2_ERROR;
-    while (ch != NULL && ch->handler.open == NULL)
+    while (ch != NULL && ch->handler.open == L2_OK)
         ch = ch->downstream;
     if (ch == NULL)
         return L2_ERROR;
@@ -97,7 +97,7 @@
         return L2_ERROR;
     if (bufsize == 0)
         return L2_OK;
-    while (ch != NULL && ch->handler.write == NULL)
+    while (ch != NULL && ch->handler.write == L2_OK)
         ch = ch->downstream;
     if (ch == NULL)
         return L2_ERROR;
@@ -113,7 +113,7 @@
         return L2_ERROR;
     if (ch->state != L2_CHSTATE_OPENED)
         return L2_ERROR;
-    while (ch != NULL && ch->handler.flush == NULL)
+    while (ch != NULL && ch->handler.flush == L2_OK)
         ch = ch->downstream;
     if (ch == NULL)
         return L2_ERROR;
@@ -129,7 +129,7 @@
         return L2_ERROR;
     if (ch->state != L2_CHSTATE_OPENED)
         return L2_ERROR;
-    while (ch != NULL && ch->handler.close == NULL)
+    while (ch != NULL && ch->handler.close == L2_OK)
         ch = ch->downstream;
     if (ch == NULL)
         return L2_ERROR;
@@ -148,7 +148,7 @@
     if (ch->state == L2_CHSTATE_OPENED)
         if ((rv = l2_channel_close(ch)) != L2_OK)
             return rv;
-    while (ch != NULL && ch->handler.destroy == NULL)
+    while (ch != NULL && ch->handler.destroy == L2_OK)
         ch = ch->downstream;
     if (ch != NULL)
         rv = ch->handler.destroy(&ch->context, ch);

CVSTrac 2.0.1