forked from Mirror/frr
tests: fix wrong callback function parameters in unit-test
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
986501029e
commit
bc3f7d9c07
|
@ -157,13 +157,15 @@ const char *data_json = "\n"
|
||||||
"}\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;
|
++data_tree_lock;
|
||||||
return data_tree;
|
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--;
|
data_tree_lock--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue