]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: fix wrong callback function parameters in unit-test 18399/head
authorChristian Hopps <chopps@labn.net>
Sat, 15 Mar 2025 04:10:24 +0000 (04:10 +0000)
committerChristian Hopps <chopps@labn.net>
Sat, 15 Mar 2025 04:12:31 +0000 (04:12 +0000)
Signed-off-by: Christian Hopps <chopps@labn.net>
tests/lib/northbound/test_oper_exists.c

index 17afcc7fd40e11faf0788115e9d420523acca472..52ecae2fefc2de744ea3b862c605c356e88735a9 100644 (file)
@@ -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--;
 }