summaryrefslogtreecommitdiffhomepage
path: root/lib/ubus.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ubus.c')
-rw-r--r--lib/ubus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ubus.c b/lib/ubus.c
index 4d74710..fb7600a 100644
--- a/lib/ubus.c
+++ b/lib/ubus.c
@@ -320,9 +320,9 @@ static void close_connection(void *ud) {
free(conn);
}
-void uc_module_init(uc_value_t *scope)
+void uc_module_init(uc_vm *vm, uc_value_t *scope)
{
uc_add_proto_functions(scope, global_fns);
- conn_type = uc_declare_type("ubus.connection", conn_fns, close_connection);
+ conn_type = uc_declare_type(vm, "ubus.connection", conn_fns, close_connection);
}