diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-21 10:44:43 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-21 10:44:43 +0000 |
commit | 9d1358ae60dd2cbe7604ea386be3b2f245f27d3d (patch) | |
tree | d7a32452bcf83ec14e8fe1311ce580c96d29a606 /sys/net/route.h | |
parent | 6e8718dbafcdd1a88640590b651dfa2a0f28ec3c (diff) |
rt_timer* spring cleanup.
Rename and document rt_timer_count() into rt_timer_queue_count() to
be consistent with the other functions. Remove unused argument from
rt_timer_queue_destroy(), clean the definitions and finally use the
same order in NAME and DESCRIPTION as requested by jmc@.
ok henning@
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 4f1ca16d903..90ef5d5d311 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.88 2014/03/18 10:47:34 mpi Exp $ */ +/* $OpenBSD: route.h,v 1.89 2014/03/21 10:44:42 mpi Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -381,17 +381,17 @@ int rt_setgate(struct rtentry *, struct sockaddr *, struct sockaddr *, u_int); void rt_setmetrics(u_long, struct rt_metrics *, struct rt_kmetrics *); void rt_getmetrics(struct rt_kmetrics *, struct rt_metrics *); -int rt_timer_add(struct rtentry *, - void(*)(struct rtentry *, struct rttimer *), - struct rttimer_queue *, u_int); -void rt_timer_init(void); -struct rttimer_queue * - rt_timer_queue_create(u_int); -void rt_timer_queue_change(struct rttimer_queue *, long); -void rt_timer_queue_destroy(struct rttimer_queue *, int); -void rt_timer_remove_all(struct rtentry *); -unsigned long rt_timer_count(struct rttimer_queue *); -void rt_timer_timer(void *); + +int rt_timer_add(struct rtentry *, + void(*)(struct rtentry *, struct rttimer *), + struct rttimer_queue *, u_int); +void rt_timer_remove_all(struct rtentry *); +struct rttimer_queue *rt_timer_queue_create(u_int); +void rt_timer_queue_change(struct rttimer_queue *, long); +void rt_timer_queue_destroy(struct rttimer_queue *); +unsigned long rt_timer_queue_count(struct rttimer_queue *); +void rt_timer_timer(void *); + void rtalloc_noclone(struct route *); void rtalloc(struct route *); #ifdef SMALL_KERNEL |