summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-18 18:16:40 +0000
committerphk <phk@FreeBSD.org>2003-06-18 18:16:40 +0000
commit591f399cfea86c008e5908349bbd5137d370f450 (patch)
tree8874c626d5d6663ddb7c81a0cd34260b7bdf70b8 /sys/kern/sys_pipe.c
parent86115a7357f5c4577ad10abe5990a13d644c2cc4 (diff)
downloadFreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.zip
FreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.tar.gz
Initialize struct fileops with C99 sparse initialization.
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c10
1 files changed, 8 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud