summaryrefslogtreecommitdiffhomepage
path: root/eval.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-10 16:34:12 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-10 16:35:13 +0200
commit39164c57d893b02f9a253c661abc2459bcd57e5c (patch)
tree7df7bb35122bc692818feb883726e5910b892101 /eval.c
parentd33d86fae9b72b352a335488e2e1401e3b0c66a1 (diff)
treewide: eliminate unused function arguments
Also introduce convenience macro for registering function arrays in modules. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index ab5448a..5bf44ef 100644
--- a/eval.c
+++ b/eval.c
@@ -193,7 +193,7 @@ ut_addscope(struct ut_state *state, uint32_t decl)
state->stack.size++;
}
- scope = ut_new_object(state, NULL);
+ scope = ut_new_object(NULL);
if (!scope)
return ut_exception(state, decl, UT_ERRMSG_OOM);
@@ -832,7 +832,7 @@ ut_execute_list(struct ut_state *state, uint32_t off)
static struct json_object *
ut_execute_object(struct ut_state *state, uint32_t off)
{
- struct json_object *obj = ut_new_object(state, NULL);
+ struct json_object *obj = ut_new_object(NULL);
struct ut_op *key, *val;
if (!obj)
@@ -1211,7 +1211,7 @@ static struct json_object *
ut_execute_function(struct ut_state *state, uint32_t off)
{
struct ut_op *op = ut_get_op(state, off);
- struct json_object *obj = ut_new_func(state, op);
+ struct json_object *obj = ut_new_func(op);
if (!obj)
return ut_exception(state, off, UT_ERRMSG_OOM);