OSSP CVS Repository

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

ossp-pkg/l2/l2_ch_prefix.c 1.11 -> 1.12

--- l2_ch_prefix.c       2001/09/11 11:59:59     1.11
+++ l2_ch_prefix.c       2001/09/12 09:42:34     1.12
@@ -83,8 +83,8 @@
 }
 
 /* write to channel */
-static l2_result_t hook_write(l2_context_t *ctx, l2_channel_t *ch, 
-                              const char *buf, size_t buf_size)
+static l2_result_t hook_write(l2_context_t *ctx, l2_channel_t *ch,
+                              l2_level_t level, const char *buf, size_t buf_size)
 {
     l2_ch_prefix_t *cfg = (l2_ch_prefix_t *)ctx->vp;
     l2_channel_t *downstream = l2_channel_downstream(ch);
@@ -104,12 +104,12 @@
             return L2_ERR_ARG;
         if ((n = strftime(cfg->timebuf, sizeof(cfg->timebuf), cfg->timefmt, tm)) == 0)
             return L2_ERR_SYS;
-        if ((rv = l2_channel_write(downstream, cfg->timebuf, n)) != L2_OK)
+        if ((rv = l2_channel_write(downstream, level, cfg->timebuf, n)) != L2_OK)
             return rv;
     }
 
     /* write to downstream channel */
-    if ((rv = l2_channel_write(downstream, buf, buf_size)) != L2_OK)
+    if ((rv = l2_channel_write(downstream, level, buf, buf_size)) != L2_OK)
         return rv;
 
     return L2_OK;

CVSTrac 2.0.1