Index: ossp-pkg/l2/l2_ch_syslog.c RCS File: /v/ossp/cvs/ossp-pkg/l2/l2_ch_syslog.c,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/l2/l2_ch_syslog.c,v' 2>/dev/null --- l2_ch_syslog.c 2001/05/11 17:07:52 1.2 +++ l2_ch_syslog.c 2001/05/17 14:42:00 1.3 @@ -30,6 +30,8 @@ #include "l2.h" #include "l2_p.h" +#include + static int hook_create(l2_context_t *ctx) { return L2_OK; @@ -45,11 +47,12 @@ return L2_OK; } -static int hook_write(l2_context_t *ctx, l2_channel_t *below, +static int hook_write(l2_context_t *ctx, l2_channel_t *below, const char *buf, size_t buf_size) -{ + { + syslog(LOG_INFO, buf); return L2_OK; -} + } static int hook_flush(l2_context_t *ctx, l2_channel_t *below) {