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);
|
|