Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net use c99 initializers
details: https://anonhg.NetBSD.org/src/rev/1bfbdb3f3f91
branches: trunk
changeset: 941803:1bfbdb3f3f91
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 30 22:51:08 2020 +0000
description:
use c99 initializers
diffstat:
sys/net/if_tap.c | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r ef1b0c59ea75 -r 1bfbdb3f3f91 sys/net/if_tap.c
--- a/sys/net/if_tap.c Fri Oct 30 22:49:07 2020 +0000
+++ b/sys/net/if_tap.c Fri Oct 30 22:51:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tap.c,v 1.119 2020/09/27 13:44:47 roy Exp $ */
+/* $NetBSD: if_tap.c,v 1.120 2020/10/30 22:51:08 christos Exp $ */
/*
* Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.119 2020/09/27 13:44:47 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.120 2020/10/30 22:51:08 christos Exp $");
#if defined(_KERNEL_OPT)
@@ -1176,10 +1176,19 @@
return revents;
}
-static struct filterops tap_read_filterops = { 1, NULL, tap_kqdetach,
- tap_kqread };
-static struct filterops tap_seltrue_filterops = { 1, NULL, tap_kqdetach,
- filt_seltrue };
+static struct filterops tap_read_filterops = {
+ .f_isfd = 1,
+ .f_attach = NULL,
+ .f_detach = tap_kqdetach,
+ .f_event = tap_kqread,
+};
+
+static struct filterops tap_seltrue_filterops = {
+ .f_isfd = 1,
+ .f_attach = NULL,
+ .f_detach = tap_kqdetach,
+ .f_event = filt_seltrue,
+};
static int
tap_cdev_kqfilter(dev_t dev, struct knote *kn)
Home |
Main Index |
Thread Index |
Old Index