summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/net/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/net/bpf.c')
-rw-r--r--freebsd/sys/net/bpf.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/freebsd/sys/net/bpf.c b/freebsd/sys/net/bpf.c
index 10ad3558..41756658 100644
--- a/freebsd/sys/net/bpf.c
+++ b/freebsd/sys/net/bpf.c
@@ -2931,13 +2931,9 @@ static const rtems_filesystem_file_handlers_r bpf_imfs_handlers = {
.writev_h = bpf_imfs_writev
};
-static const IMFS_node_control bpf_imfs_control = {
- .imfs_type = IMFS_GENERIC,
- .handlers = &bpf_imfs_handlers,
- .node_initialize = IMFS_node_initialize_default,
- .node_remove = IMFS_node_remove_default,
- .node_destroy = IMFS_node_destroy_default
-};
+static const IMFS_node_control bpf_imfs_control = IMFS_GENERIC_INITIALIZER(
+ &bpf_imfs_handlers, IMFS_node_initialize_generic,
+ IMFS_node_destroy_default);
#endif /* __rtems__ */
static void