diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-04 08:57:19 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-04 08:57:19 -0700 |
commit | 985852c5d1330646d37b4c91669f05a146e7f140 (patch) | |
tree | 6eeda31649fda4081a938fa9eacb0258187ab8f4 /lib/table.c | |
parent | 3ba765130998aa5672a8102676d83a23dd1dba35 (diff) | |
download | quagga-985852c5d1330646d37b4c91669f05a146e7f140.tar.bz2 quagga-985852c5d1330646d37b4c91669f05a146e7f140.tar.xz |
Inline trivial reference count functions
route_node_lock/route_node_unlock are trivial and used often.
Diffstat (limited to 'lib/table.c')
-rw-r--r-- | lib/table.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/table.c b/lib/table.c index 2ade71b8..17f9607b 100644 --- a/lib/table.c +++ b/lib/table.c @@ -201,24 +201,6 @@ set_link (struct route_node *node, struct route_node *new) new->parent = node; } -/* Lock node. */ -struct route_node * -route_lock_node (struct route_node *node) -{ - node->lock++; - return node; -} - -/* Unlock node. */ -void -route_unlock_node (struct route_node *node) -{ - node->lock--; - - if (node->lock == 0) - route_node_delete (node); -} - /* Dump routing table. */ static void __attribute__ ((unused)) route_dump_node (struct route_table *t) |