summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/radix_mpath.c8
-rw-r--r--sys/net/radix_mpath.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/radix_mpath.c b/sys/net/radix_mpath.c
index b04b42a..03800f6 100644
--- a/sys/net/radix_mpath.c
+++ b/sys/net/radix_mpath.c
@@ -76,10 +76,10 @@ rn_mpath_next(struct radix_node *rn)
return NULL;
}
-int
+u_int32_t
rn_mpath_count(struct radix_node *rn)
{
- int i;
+ u_int32_t i;
i = 1;
while ((rn = rn_mpath_next(rn)) != NULL)
@@ -255,10 +255,10 @@ different:
}
void
-rtalloc_mpath_fib(struct route *ro, int hash, u_int fibnum)
+rtalloc_mpath_fib(struct route *ro, u_int32_t hash, u_int fibnum)
{
struct radix_node *rn0, *rn;
- int n;
+ u_int32_t n;
/*
* XXX we don't attempt to lookup cached route again; what should
diff --git a/sys/net/radix_mpath.h b/sys/net/radix_mpath.h
index b9224c8..bcb210e 100644
--- a/sys/net/radix_mpath.h
+++ b/sys/net/radix_mpath.h
@@ -46,11 +46,11 @@ struct rtentry;
struct sockaddr;
int rn_mpath_capable(struct radix_node_head *);
struct radix_node *rn_mpath_next(struct radix_node *);
-int rn_mpath_count(struct radix_node *);
+u_int32_t rn_mpath_count(struct radix_node *);
struct rtentry *rt_mpath_matchgate(struct rtentry *, struct sockaddr *);
int rt_mpath_conflict(struct radix_node_head *, struct rtentry *,
struct sockaddr *);
-void rtalloc_mpath_fib(struct route *, int, u_int);
+void rtalloc_mpath_fib(struct route *, u_int32_t, u_int);
#define rtalloc_mpath(_route, _hash) rtalloc_mpath_fib((_route), (_hash), 0)
struct radix_node *rn_mpath_lookup(void *, void *,
struct radix_node_head *);
OpenPOWER on IntegriCloud