summaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-08-11 21:24:21 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-08-11 21:24:21 +0000
commitbda0e09dc4819e6f0da56bc659a507a53ce2c49e (patch)
treeb8a35df42b1a236d2f93a31c84fab1deb17e8a67 /sys/net/route.c
parent119ca99b6e7df0e54659d9e9b1b7f7960196ac58 (diff)
Remove NET_LOCK()'s argument.
Tested by Hrvoje Popovski, ok bluhm@
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 8327614ca79..61914bab2e0 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.365 2017/08/02 07:42:11 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.366 2017/08/11 21:24:19 mpi Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -1414,11 +1414,10 @@ rt_timer_timer(void *arg)
struct rttimer_queue *rtq;
struct rttimer *r;
long current_time;
- int s;
current_time = time_uptime;
- NET_LOCK(s);
+ NET_LOCK();
LIST_FOREACH(rtq, &rttimer_queue_head, rtq_link) {
while ((r = TAILQ_FIRST(&rtq->rtq_head)) != NULL &&
(r->rtt_time + rtq->rtq_timeout) < current_time) {
@@ -1432,7 +1431,7 @@ rt_timer_timer(void *arg)
printf("rt_timer_timer: rtq_count reached 0\n");
}
}
- NET_UNLOCK(s);
+ NET_UNLOCK();
timeout_add_sec(to, 1);
}