--- l2_ch_syslog.c 2001/09/04 15:44:48 1.11
+++ l2_ch_syslog.c 2001/09/04 19:18:49 1.12
@@ -42,7 +42,7 @@
} l2_ch_syslog_t;
/* create channel */
-static int hook_create(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_create(l2_context_t *ctx, l2_channel_t *ch)
{
l2_ch_syslog_t *cfg;
@@ -64,7 +64,7 @@
}
/* configure channel */
-static int hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
+static l2_result_t hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
{
l2_ch_syslog_t *cfg;
l2_param_t pa[3];
@@ -87,7 +87,7 @@
}
/* open channel */
-static int hook_open(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_open(l2_context_t *ctx, l2_channel_t *ch)
{
l2_ch_syslog_t *cfg;
@@ -103,7 +103,7 @@
}
/* write to channel */
-static int hook_write(l2_context_t *ctx, l2_channel_t *ch,
+static l2_result_t hook_write(l2_context_t *ctx, l2_channel_t *ch,
const char *buf, size_t buf_size)
{
l2_ch_syslog_t *cfg;
@@ -119,7 +119,7 @@
}
/* flush channel */
-static int hook_flush(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_flush(l2_context_t *ctx, l2_channel_t *ch)
{
/* Noop for this channel, because syslog entries are unbuffered */
@@ -127,7 +127,7 @@
}
/* close channel */
-static int hook_close(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_close(l2_context_t *ctx, l2_channel_t *ch)
{
l2_ch_syslog_t *cfg;
@@ -142,7 +142,7 @@
}
/* destroy channel */
-static int hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
{
/* parameter checks */
if (ctx->vp == NULL)
|