summaryrefslogtreecommitdiffstats
path: root/exec.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 /exec.c
parent0a0dc74b9103d757bf5c2cd2b8c14e5b825b232a (diff)
downloadbfs-ff53e4e4778109389192494af3bb5dbfcdeb50f0.tar.xz
exec: Adjust some calling conventions
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exec.c b/exec.c
index 3c9c6a5..625cdd5 100644
--- a/exec.c
+++ b/exec.c
@@ -117,7 +117,7 @@ static size_t bfs_exec_arg_max(const struct bfs_exec *execbuf) {
return arg_max;
}
-struct bfs_exec *parse_bfs_exec(char **argv, enum bfs_exec_flags flags, const struct bfs_ctx *ctx) {
+struct bfs_exec *bfs_exec_parse(const struct bfs_ctx *ctx, char **argv, enum bfs_exec_flags flags) {
struct bfs_exec *execbuf = malloc(sizeof(*execbuf));
if (!execbuf) {
bfs_perror(ctx, "malloc()");
@@ -188,7 +188,7 @@ struct bfs_exec *parse_bfs_exec(char **argv, enum bfs_exec_flags flags, const st
return execbuf;
fail:
- free_bfs_exec(execbuf);
+ bfs_exec_free(execbuf);
return NULL;
}
@@ -613,7 +613,7 @@ int bfs_exec_finish(struct bfs_exec *execbuf) {
return execbuf->ret;
}
-void free_bfs_exec(struct bfs_exec *execbuf) {
+void bfs_exec_free(struct bfs_exec *execbuf) {
if (execbuf) {
bfs_exec_closewd(execbuf, NULL);
free(execbuf->argv);