rtstat and rt_tables global variables were declared EACH time route.h was included.
There're now only defined here via extern, and declared in /current/src/add-ons/kernel/network/core/route.c where they belong. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1807 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -185,8 +185,8 @@ struct rtstat {
|
||||
(rt)->rt_refcnt--; \
|
||||
} while (0)
|
||||
|
||||
struct rtstat rtstat;
|
||||
struct radix_node_head *rt_tables[AF_MAX+1];
|
||||
extern struct rtstat rtstat;
|
||||
extern struct radix_node_head *rt_tables[AF_MAX+1];
|
||||
|
||||
void route_init(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user