summaryrefslogtreecommitdiffhomepage
path: root/lib/ubus.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-19 17:52:07 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-19 23:36:05 +0200
commit3edf942ac85a90707e57d9e251004459aa6b4cea (patch)
treec47c2068b22ecbe4683a76807ca6fbf266f34b0f /lib/ubus.c
parent1149ffa23be8ff4059f75068c9e36cfda52a71f8 (diff)
eval: record correct source contexts in call stack
Also handle calls to C functions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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 21f7a7b..b707e51 100644
--- a/lib/ubus.c
+++ b/lib/ubus.c
@@ -320,8 +320,8 @@ void ut_module_init(const struct ut_ops *ut, struct ut_state *s, struct json_obj
ops = ut;
conn_proto = ops->new_object(NULL);
- register_functions(ops, global_fns, scope);
- register_functions(ops, conn_fns, conn_proto);
+ register_functions(s, ops, global_fns, scope);
+ register_functions(s, ops, conn_fns, conn_proto);
ops->register_type("ubus.connection", conn_proto, close_connection);
}