summaryrefslogtreecommitdiff
path: root/tests/lib/northbound/test_oper_exists.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2025-03-16 15:14:55 +0100
committerGitHub <noreply@github.com>2025-03-16 15:14:55 +0100
commitc288e5fbaf73bafb9aa15ade13969fc321e321db (patch)
tree412707fb47b80ad46b018dc2519ba86cbb7a5e90 /tests/lib/northbound/test_oper_exists.c
parentf2245941d822b1d7d11cde51073ef0ac43739df3 (diff)
parentbc3f7d9c07524112ccd9a5cb950511d4aab4c3f2 (diff)
Merge pull request #18399 from LabNConsulting/chopps/fix-unit-tests
2 unit-test fixes
Diffstat (limited to 'tests/lib/northbound/test_oper_exists.c')
-rw-r--r--tests/lib/northbound/test_oper_exists.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/northbound/test_oper_exists.c b/tests/lib/northbound/test_oper_exists.c
index 17afcc7fd4..52ecae2fef 100644
--- a/tests/lib/northbound/test_oper_exists.c
+++ b/tests/lib/northbound/test_oper_exists.c
@@ -157,13 +157,15 @@ const char *data_json = "\n"
"}\n";
-static const struct lyd_node *test_oper_get_tree_locked(const char *xpath)
+static const struct lyd_node *test_oper_get_tree_locked(const char *xpath __attribute__((unused)),
+ void **lock __attribute__((unused)))
{
++data_tree_lock;
return data_tree;
}
-static void test_oper_unlock_tree(const struct lyd_node *tree __attribute__((unused)))
+static void test_oper_unlock_tree(const struct lyd_node *tree __attribute__((unused)),
+ void *lock __attribute__((unused)))
{
data_tree_lock--;
}