ossp-pkg/l2/l2_ch_buffer.c 1.34 -> 1.35
--- l2_ch_buffer.c 2001/11/07 13:05:20 1.34
+++ l2_ch_buffer.c 2001/11/16 20:07:54 1.35
@@ -239,11 +239,12 @@
}
}
- /* flush if level of incoming message differs from those already in buffer */
- if ( (cfg->levelflush) /* if different levels force a flush */
- && (cfg->bufpos > 0) /* and there is something in the buffer */
- && (cfg->level != L2_LEVEL_NONE) /* and a remembered level is known */
- && (level != cfg->level) /* and the levels really differ */) {
+ /* flush if incoming message level differs from those already in buffer */
+ if ( (cfg->levelflush) /* if different levels force a flush */
+ && (cfg->bufpos > 0) /* and there is something in the buffer */
+ && (cfg->level != L2_LEVEL_NONE) /* and a remembered level is known */
+ && (level != cfg->level) /* and the levels really differ */)
+ {
downstream = NULL;
while (l2_channel_downstream(ch, &downstream) == L2_OK)
if ((rv = l2_channel_write(downstream, cfg->level, cfg->buf, cfg->bufpos)) != L2_OK)
|
|