OSSP CVS Repository

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

ossp-pkg/l2/l2_stream.c 1.14 -> 1.15

--- l2_stream.c  2001/09/06 14:37:53     1.14
+++ l2_stream.c  2001/09/12 09:42:34     1.15
@@ -120,7 +120,7 @@
 }
 
 /* log a message to stream */
-l2_result_t l2_stream_log(l2_stream_t *st, unsigned int level, const char *fmt, ...)
+l2_result_t l2_stream_log(l2_stream_t *st, l2_level_t level, const char *fmt, ...)
 {
     va_list ap;
     l2_result_t rv;
@@ -176,7 +176,7 @@
 }
 
 /* log a message to stream (va_list-variant) */
-l2_result_t l2_stream_vlog(l2_stream_t *st, unsigned int level, const char *fmt, va_list ap)
+l2_result_t l2_stream_vlog(l2_stream_t *st, l2_level_t level, const char *fmt, va_list ap)
 {
     int i;
     int l, j;
@@ -223,7 +223,7 @@
     rv = L2_OK;
     for (i = 0; i < L2_MAX_CHANNELS && st->channels[i].ch != NULL; i++) {
         if (st->channels[i].levelmask & level) {
-            if ((rv = l2_channel_write(st->channels[i].ch, st->message, len)) != L2_OK)
+            if ((rv = l2_channel_write(st->channels[i].ch, level, st->message, len)) != L2_OK)
                 break;
         }
     }

CVSTrac 2.0.1