From c209894806b3b7e37931ecc68cb218a1893f8141 Mon Sep 17 00:00:00 2001 From: Jeremie Courreges-Anglas Date: Sun, 5 Feb 2017 16:23:39 +0000 Subject: Always allocate counters memory using type M_COUNTERS. This makes the API simpler, and is probably more useful than spreading counters memory other several types, making it harder to track. Prodded by mpi, ok mpi@ stsp@ --- sys/net/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/route.c b/sys/net/route.c index 52e7d3813de..ad621de6b69 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.349 2017/01/24 10:08:30 krw Exp $ */ +/* $OpenBSD: route.c,v 1.350 2017/02/05 16:23:38 jca Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -191,7 +191,7 @@ TAILQ_HEAD(rt_labels, rt_label) rt_labels = TAILQ_HEAD_INITIALIZER(rt_labels); void route_init(void) { - rtcounters = counters_alloc(rts_ncounters, M_COUNTERS); + rtcounters = counters_alloc(rts_ncounters); pool_init(&rtentry_pool, sizeof(struct rtentry), 0, IPL_SOFTNET, 0, "rtentry", NULL); -- cgit v1.2.3