From: Christian Hopps Date: Sat, 15 Mar 2025 04:10:24 +0000 (+0000) Subject: tests: fix wrong callback function parameters in unit-test X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bc3f7d9c07524112ccd9a5cb950511d4aab4c3f2;p=mirror%2Ffrr.git tests: fix wrong callback function parameters in unit-test Signed-off-by: Christian Hopps --- 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--; }