From 591f399cfea86c008e5908349bbd5137d370f450 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 18 Jun 2003 18:16:40 +0000 Subject: Initialize struct fileops with C99 sparse initialization. --- sys/dev/streams/streams.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys/dev/streams') diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index 822249a..0f7c3b4 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -90,8 +90,13 @@ static dev_t dt_ptm, dt_arp, dt_icmp, dt_ip, dt_tcp, dt_udp, dt_rawip, dt_unix_dgram, dt_unix_stream, dt_unix_ord_stream; static struct fileops svr4_netops = { - soo_read, soo_write, soo_ioctl, soo_poll, soo_kqfilter, - soo_stat, svr4_soo_close + .fo_read = soo_read, + .fo_write = soo_write, + .fo_ioctl = soo_ioctl, + .fo_poll = soo_poll, + .fo_kqfilter = soo_kqfilter, + .fo_stat = soo_stat, + .fo_close = svr4_soo_close }; #define CDEV_MAJOR 103 -- cgit v1.1