diff options
author | bz <bz@FreeBSD.org> | 2016-03-24 11:40:10 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-03-24 11:40:10 +0000 |
commit | a460d0156798a8e88ab4f60947b9180e7a9c13b5 (patch) | |
tree | fec1608bfaa57673715944537ac1a3d862bed180 /sys/net/route.h | |
parent | 0c487173631bdfea097ed52cd60ef3ff32f0323e (diff) | |
download | FreeBSD-src-a460d0156798a8e88ab4f60947b9180e7a9c13b5.zip FreeBSD-src-a460d0156798a8e88ab4f60947b9180e7a9c13b5.tar.gz |
Fix compile errors after r297225:
- properly V_irtualise variable access unbreaking VIMAGE kernels.
- remove the volatile from the function return type to make architecture
using gcc happy [-Wreturn-type]
"type qualifiers ignored on function return type"
I am not entirely happy with this solution putting the u_int there
but it will do for now.
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 596214e..e0ff6b4 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -437,7 +437,7 @@ int rt_setgate(struct rtentry *, struct sockaddr *, struct sockaddr *); void rt_maskedcopy(struct sockaddr *, struct sockaddr *, struct sockaddr *); struct rib_head *rt_table_init(int); void rt_table_destroy(struct rib_head *); -rt_gen_t rt_tables_get_gen(int table, int fam); +u_int rt_tables_get_gen(int table, int fam); int rtsock_addrmsg(int, struct ifaddr *, int); int rtsock_routemsg(int, struct ifnet *ifp, int, struct rtentry *, int); |