From c10e14e96dae32a3b52bc97ab197e58577cff709 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 14 Oct 2020 12:44:23 -0400 Subject: *: 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 --- lib/table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/table.c') diff --git a/lib/table.c b/lib/table.c index 86347cbac..b315637f1 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); -- cgit v1.2.3