aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-28 11:13:59 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-28 11:13:59 -0400
commitd32faba5584481beacae04e3cad949b696b1a4aa (patch)
tree180eb07607c63b5066c7ffaeb09bd44e8a0bedd8 /tests
parent613b5f2fcd62ec94c1ef331cd3f15bc18f818150 (diff)
downloadstasis-d32faba5584481beacae04e3cad949b696b1a4aa.tar.gz
Fix test_tpl_register_func()
Diffstat (limited to 'tests')
-rw-r--r--tests/test_template.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_template.c b/tests/test_template.c
index 432dfa6..79fce5e 100644
--- a/tests/test_template.c
+++ b/tests/test_template.c
@@ -78,10 +78,10 @@ void test_tpl_register_func() {
{.key = "mul", .argc = 2, .func = &multiplier},
{.key = "div", .argc = 2, .func = &divider},
};
- tpl_register_func("add", tc[0].func, tc[0].argc);
- tpl_register_func("sub", tc[1].func, tc[1].argc);
- tpl_register_func("mul", tc[2].func, tc[2].argc);
- tpl_register_func("div", tc[3].func, tc[3].argc);
+ tpl_register_func("add", tc[0].func, tc[0].argc, NULL);
+ tpl_register_func("sub", tc[1].func, tc[1].argc, NULL);
+ tpl_register_func("mul", tc[2].func, tc[2].argc, NULL);
+ tpl_register_func("div", tc[3].func, tc[3].argc, NULL);
STASIS_ASSERT(tpl_pool_func_used == sizeof(tc) / sizeof(*tc), "unexpected function pool used");
char *result = NULL;