From 9d1358ae60dd2cbe7604ea386be3b2f245f27d3d Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Fri, 21 Mar 2014 10:44:43 +0000 Subject: 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@ --- sys/net/route.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'sys/net/route.h') 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 -- cgit v1.2.3