diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-10-14 18:44:23 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-17 19:39:10 +0200 |
commit | c10e14e96dae32a3b52bc97ab197e58577cff709 (patch) | |
tree | af3db68b477518fdd84ce4cbf4cd6d7b4823011c /lib/table.c | |
parent | Merge pull request #7336 from donaldsharp/sharp_one_one (diff) | |
download | frr-c10e14e96dae32a3b52bc97ab197e58577cff709.tar.xz frr-c10e14e96dae32a3b52bc97ab197e58577cff709.zip |
*: 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |