summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslog.c')
-rw-r--r--syslog.c32
1 files changed, 12 insertions, 20 deletions
diff --git a/syslog.c b/syslog.c
index 51ad8c5c..1e208d7e 100644
--- a/syslog.c
+++ b/syslog.c
@@ -198,26 +198,18 @@ static val syslog_set_prop(val stream, val ind, val prop)
return nil;
}
-static struct strm_ops syslog_strm_ops = {
- { eq,
- cobj_print_op,
- cobj_destroy_stub_op,
- syslog_mark,
- cobj_hash_op },
- syslog_put_string,
- syslog_put_char,
- syslog_put_byte,
- 0, /* get_line */
- 0, /* get_char */
- 0, /* get_byte */
- 0, /* unget_char */
- 0, /* unget_byte */
- 0, /* close */
- 0, /* flush */
- 0, /* seek */
- syslog_get_prop,
- syslog_set_prop
-};
+static struct strm_ops syslog_strm_ops =
+ strm_ops_init(cobj_ops_init(eq,
+ cobj_print_op,
+ cobj_destroy_stub_op,
+ syslog_mark,
+ cobj_hash_op),
+ syslog_put_string,
+ syslog_put_char,
+ syslog_put_byte,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ syslog_get_prop,
+ syslog_set_prop);
val make_syslog_stream(val prio)
{