summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fs.c2
-rw-r--r--lib/math.c2
-rw-r--r--lib/ubus.c2
-rw-r--r--lib/uci.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/fs.c b/lib/fs.c
index 0c37aab..6f6c7cb 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -906,7 +906,7 @@ static void close_dir(void *ud)
void uc_module_init(uc_vm *vm, uc_value_t *scope)
{
- uc_add_proto_functions(scope, global_fns);
+ uc_add_functions(scope, global_fns);
proc_type = uc_declare_type(vm, "fs.proc", proc_fns, close_proc);
file_type = uc_declare_type(vm, "fs.file", file_fns, close_file);
diff --git a/lib/math.c b/lib/math.c
index 0adfaf8..bc8efb6 100644
--- a/lib/math.c
+++ b/lib/math.c
@@ -160,5 +160,5 @@ static const uc_cfunction_list math_fns[] = {
void uc_module_init(uc_vm *vm, uc_value_t *scope)
{
- uc_add_proto_functions(scope, math_fns);
+ uc_add_functions(scope, math_fns);
}
diff --git a/lib/ubus.c b/lib/ubus.c
index fb7600a..933ef3a 100644
--- a/lib/ubus.c
+++ b/lib/ubus.c
@@ -322,7 +322,7 @@ static void close_connection(void *ud) {
void uc_module_init(uc_vm *vm, uc_value_t *scope)
{
- uc_add_proto_functions(scope, global_fns);
+ uc_add_functions(scope, global_fns);
conn_type = uc_declare_type(vm, "ubus.connection", conn_fns, close_connection);
}
diff --git a/lib/uci.c b/lib/uci.c
index d9a9ea6..71a9c2d 100644
--- a/lib/uci.c
+++ b/lib/uci.c
@@ -1007,7 +1007,7 @@ static void close_uci(void *ud) {
void uc_module_init(uc_vm *vm, uc_value_t *scope)
{
- uc_add_proto_functions(scope, global_fns);
+ uc_add_functions(scope, global_fns);
cursor_type = uc_declare_type(vm, "uci.cursor", cursor_fns, close_uci);
}