diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-12-08 12:00:50 +0300 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2009-12-08 12:00:50 +0300 |
commit | 38cc00cd823fe945c7748de18c3e8932d98dd8f8 (patch) | |
tree | 51f79a6ff37f8858b569f55f27480c4b47eb2aac /lib/table.h | |
parent | 0d6388abc7a5da2a20a4854c400c8e176127e480 (diff) |
lib: make match functions take const args
* table.c: general type safety and compiler help:
* maskbit[]: become const
* route_node_match(): take const args
* route_node_match_ipv4(): idem
* route_node_match_ipv6(): idem
* check_bit(): idem, plus adjust local vars typing
Diffstat (limited to 'lib/table.h')
-rw-r--r-- | lib/table.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/table.h b/lib/table.h index 45ec6067..41d1fa70 100644 --- a/lib/table.h +++ b/lib/table.h @@ -66,13 +66,13 @@ extern struct route_node *route_node_get (struct route_table *, extern struct route_node *route_node_lookup (struct route_table *, struct prefix *); extern struct route_node *route_lock_node (struct route_node *node); -extern struct route_node *route_node_match (struct route_table *, - struct prefix *); -extern struct route_node *route_node_match_ipv4 (struct route_table *, - struct in_addr *); +extern struct route_node *route_node_match (const struct route_table *, + const struct prefix *); +extern struct route_node *route_node_match_ipv4 (const struct route_table *, + const struct in_addr *); #ifdef HAVE_IPV6 -extern struct route_node *route_node_match_ipv6 (struct route_table *, - struct in6_addr *); +extern struct route_node *route_node_match_ipv6 (const struct route_table *, + const struct in6_addr *); #endif /* HAVE_IPV6 */ #endif /* _ZEBRA_TABLE_H */ |