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/kern/sys_pipe.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/kern/sys_pipe.c') diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 4f62e92..5782b60 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -104,8 +104,14 @@ static fo_stat_t pipe_stat; static fo_close_t pipe_close; static struct fileops pipeops = { - pipe_read, pipe_write, pipe_ioctl, pipe_poll, pipe_kqfilter, - pipe_stat, pipe_close, DFLAG_PASSABLE + .fo_read = pipe_read, + .fo_write = pipe_write, + .fo_ioctl = pipe_ioctl, + .fo_poll = pipe_poll, + .fo_kqfilter = pipe_kqfilter, + .fo_stat = pipe_stat, + .fo_close = pipe_close, + .fo_flags = DFLAG_PASSABLE }; static void filt_pipedetach(struct knote *kn); -- cgit v1.1