diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-10 16:34:12 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-10 16:35:13 +0200 |
commit | 39164c57d893b02f9a253c661abc2459bcd57e5c (patch) | |
tree | 7df7bb35122bc692818feb883726e5910b892101 /ast.c | |
parent | d33d86fae9b72b352a335488e2e1401e3b0c66a1 (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 'ast.c')
-rw-r--r-- | ast.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -174,7 +174,7 @@ obj_free(struct json_object *v, void *ud) } struct json_object * -ut_new_object(struct ut_state *s, struct json_object *proto) { +ut_new_object(struct json_object *proto) { struct json_object *val = json_object_new_object(); struct ut_op *op; @@ -228,7 +228,7 @@ func_to_string(struct json_object *v, struct printbuf *pb, int level, int flags) } struct json_object * -ut_new_func(struct ut_state *s, struct ut_op *decl) +ut_new_func(struct ut_op *decl) { struct json_object *val = json_object_new_object(); struct ut_op *op; @@ -391,7 +391,7 @@ ut_extended_type_free(struct json_object *v, void *ud) } struct json_object * -ut_set_extended_type(struct ut_state *s, struct json_object *v, struct json_object *proto, const char *name, void *data) +ut_set_extended_type(struct json_object *v, struct json_object *proto, const char *name, void *data) { struct ut_extended_type *et = NULL; struct ut_op *op; |