diff options
author | phk <phk@FreeBSD.org> | 2003-06-18 18:16:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-06-18 18:16:40 +0000 |
commit | 591f399cfea86c008e5908349bbd5137d370f450 (patch) | |
tree | 8874c626d5d6663ddb7c81a0cd34260b7bdf70b8 /sys/dev/streams/streams.c | |
parent | 86115a7357f5c4577ad10abe5990a13d644c2cc4 (diff) | |
download | FreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.zip FreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.tar.gz |
Initialize struct fileops with C99 sparse initialization.
Diffstat (limited to 'sys/dev/streams/streams.c')
-rw-r--r-- | sys/dev/streams/streams.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 |