aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2024-12-09 17:14:08 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2024-12-15 02:20:53 +0000
commitbca3a925b0bcb57bc48480fbc92fef257aeb1a72 (patch)
treeccd63c4d6db2c6f2a0fbf3a4d9ae9f501236508a
parent23c1619970ab1082b8275ffb914463f1c62c2f84 (diff)
routing: Use NULL for VNET_SYS[UN]INIT's last arg, which is a pointer type
MFC after: 3 days (cherry picked from commit 12b2d68bed37e379929cd9b5e0afe34c387be360)
-rw-r--r--sys/net/route/route_tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route/route_tables.c b/sys/net/route/route_tables.c
index f1c96f813d91..1b1281c858da 100644
--- a/sys/net/route/route_tables.c
+++ b/sys/net/route/route_tables.c
@@ -322,7 +322,7 @@ vnet_rtables_init(const void *unused __unused)
RTABLES_UNLOCK();
}
VNET_SYSINIT(vnet_rtables_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH,
- vnet_rtables_init, 0);
+ vnet_rtables_init, NULL);
#ifdef VIMAGE
static void
@@ -361,7 +361,7 @@ rtables_destroy(const void *unused __unused)
#endif
}
VNET_SYSUNINIT(rtables_destroy, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST,
- rtables_destroy, 0);
+ rtables_destroy, NULL);
#endif
static inline struct rib_head *