summaryrefslogtreecommitdiffhomepage
path: root/lib.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 /lib.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 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index f102505..9dfeb1e 100644
--- a/lib.c
+++ b/lib.c
@@ -278,7 +278,7 @@ ut_c_fn_free(struct json_object *v, void *ud)
}
static bool
-ut_register_function(struct ut_state *state, struct json_object *scope, const char *name, ut_c_fn *fn)
+ut_register_function(struct json_object *scope, const char *name, ut_c_fn *fn)
{
struct json_object *val = json_object_new_object();
struct ut_op *op;
@@ -1819,5 +1819,5 @@ ut_lib_init(struct ut_state *state, struct json_object *scope)
int i;
for (i = 0; i < sizeof(functions) / sizeof(functions[0]); i++)
- ut_register_function(state, scope, functions[i].name, functions[i].func);
+ ut_register_function(scope, functions[i].name, functions[i].func);
}