summaryrefslogtreecommitdiffhomepage
path: root/lib/uci.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uci.c')
-rw-r--r--lib/uci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uci.c b/lib/uci.c
index 6a40df5..a56531a 100644
--- a/lib/uci.c
+++ b/lib/uci.c
@@ -1023,8 +1023,8 @@ void ut_module_init(const struct ut_ops *ut, struct ut_state *s, struct json_obj
ops = ut;
uci_proto = ops->new_object(NULL);
- register_functions(ops, global_fns, scope);
- register_functions(ops, cursor_fns, uci_proto);
+ register_functions(s, ops, global_fns, scope);
+ register_functions(s, ops, cursor_fns, uci_proto);
ops->register_type("uci.cursor", uci_proto, close_uci);
}