summaryrefslogtreecommitdiff
path: root/tests/helpers/c/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers/c/main.c')
-rw-r--r--tests/helpers/c/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/helpers/c/main.c b/tests/helpers/c/main.c
index 9e34a7c255..11db2dabc3 100644
--- a/tests/helpers/c/main.c
+++ b/tests/helpers/c/main.c
@@ -26,7 +26,7 @@
#include "memory.h"
#include "memory_vty.h"
-extern void test_init();
+extern void test_init(void);
struct thread_master *master;
@@ -56,12 +56,12 @@ static int test_timer(struct thread *thread)
return 0;
}
-static void test_timer_init()
+static void test_timer_init(void)
{
thread_add_timer(master, test_timer, &timer_count, 10, NULL);
}
-static void test_vty_init()
+static void test_vty_init(void)
{
install_element(VIEW_NODE, &daemon_exit_cmd);
}
@@ -156,7 +156,7 @@ int main(int argc, char **argv)
vty_init(master);
memory_init();
yang_init();
- nb_init(NULL, 0);
+ nb_init(master, NULL, 0);
/* OSPF vty inits. */
test_vty_init();