summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-10-06 13:01:16 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-10-06 13:01:16 -0400
commitff53e4e4778109389192494af3bb5dbfcdeb50f0 (patch)
tree23b4883d4e528d2eed3a8d8d9e81bc5026fe33c3 /parse.c
parent0a0dc74b9103d757bf5c2cd2b8c14e5b825b232a (diff)
downloadbfs-ff53e4e4778109389192494af3bb5dbfcdeb50f0.tar.xz
exec: Adjust some calling conventions
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index ef695de..7113a1f 100644
--- a/parse.c
+++ b/parse.c
@@ -111,7 +111,7 @@ void free_expr(struct expr *expr) {
}
bfs_printf_free(expr->printf);
- free_bfs_exec(expr->execbuf);
+ bfs_exec_free(expr->execbuf);
free_expr(expr->lhs);
free_expr(expr->rhs);
@@ -1103,14 +1103,14 @@ static struct expr *parse_empty(struct parser_state *state, int arg1, int arg2)
* Parse -exec(dir)?/-ok(dir)?.
*/
static struct expr *parse_exec(struct parser_state *state, int flags, int arg2) {
- struct bfs_exec *execbuf = parse_bfs_exec(state->argv, flags, state->ctx);
+ struct bfs_exec *execbuf = bfs_exec_parse(state->ctx, state->argv, flags);
if (!execbuf) {
return NULL;
}
struct expr *expr = parse_action(state, eval_exec, execbuf->tmpl_argc + 2);
if (!expr) {
- free_bfs_exec(execbuf);
+ bfs_exec_free(execbuf);
return NULL;
}