summaryrefslogtreecommitdiff
path: root/lib/table.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-10-14 12:44:23 -0400
committerDonald Sharp <sharpd@nvidia.com>2020-10-17 13:39:10 -0400
commitc10e14e96dae32a3b52bc97ab197e58577cff709 (patch)
treeaf3db68b477518fdd84ce4cbf4cd6d7b4823011c /lib/table.c
parent0894afd4cf49511be5ac68f36115ca6acf6a5707 (diff)
*: Create/Use accessor functions for lock count
Create appropriate accessor functions for the rn->lock data. We should be accessing this data through accessor functions since it is private data to the data structure. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/table.c')
-rw-r--r--lib/table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/table.c b/lib/table.c
index 86347cbacd..b315637f19 100644
--- a/lib/table.c
+++ b/lib/table.c
@@ -119,7 +119,8 @@ static void route_table_free(struct route_table *rt)
node = node->parent;
tmp_node->table->count--;
- tmp_node->lock = 0; /* to cause assert if unlocked after this */
+ tmp_node->lock =
+ 0; /* to cause assert if unlocked after this */
rn_hash_node_del(&rt->hash, tmp_node);
route_node_free(rt, tmp_node);