summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-05-26 08:02:54 +0000
committermpi <mpi@openbsd.org>2020-05-26 08:02:54 +0000
commit5e884cdf20e6c8504f3ca24b8a416649c8f82157 (patch)
tree10665e73426595b49ad87f92af96cb524a050ef0 /sys/net
parentMake cdev_{audio,video}_init() expose a kqfilter handler. (diff)
downloadwireguard-openbsd-5e884cdf20e6c8504f3ca24b8a416649c8f82157.tar.xz
wireguard-openbsd-5e884cdf20e6c8504f3ca24b8a416649c8f82157.zip
Use C99 initializers in 'struct filterops' definitions.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pppx.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c
index 5fc62d8e05d..d3119e2f95f 100644
--- a/sys/net/if_pppx.c
+++ b/sys/net/if_pppx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppx.c,v 1.85 2020/05/26 07:01:54 mpi Exp $ */
+/* $OpenBSD: if_pppx.c,v 1.86 2020/05/26 08:02:54 mpi Exp $ */
/*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@@ -1202,20 +1202,20 @@ static void filt_pppac_rdetach(struct knote *);
static int filt_pppac_read(struct knote *, long);
static const struct filterops pppac_rd_filtops = {
- 1,
- NULL,
- filt_pppac_rdetach,
- filt_pppac_read
+ .f_flags = FILTEROP_ISFD,
+ .f_attach = NULL,
+ .f_detach = filt_pppac_rdetach,
+ .f_event = filt_pppac_read
};
static void filt_pppac_wdetach(struct knote *);
static int filt_pppac_write(struct knote *, long);
static const struct filterops pppac_wr_filtops = {
- 1,
- NULL,
- filt_pppac_wdetach,
- filt_pppac_write
+ .f_flags = FILTEROP_ISFD,
+ .f_attach = NULL,
+ .f_detach = filt_pppac_wdetach,
+ .f_event = filt_pppac_write
};
static struct pppac_list pppac_devs = LIST_HEAD_INITIALIZER(pppac_devs);