summaryrefslogtreecommitdiffstats
path: root/src/opt.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-08 16:43:29 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-08 16:46:44 -0500
commitededa3ed1cf0d02fcdb9a42d44d46a84fec1c58e (patch)
treef069bc16c3ca48c849603ef54d28e297da04152f /src/opt.c
parent031ebed0e5f59ed8c2404a7162732808db4af047 (diff)
downloadbfs-ededa3ed1cf0d02fcdb9a42d44d46a84fec1c58e.tar.xz
opt: Pass a va_list to bfs_vwarning(), not bfs_warning()
Luckily none of the callers actually pass any arguments.
Diffstat (limited to 'src/opt.c')
-rw-r--r--src/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opt.c b/src/opt.c
index 56d4102..3250331 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -339,7 +339,7 @@ static void opt_warning(const struct opt_state *state, const struct bfs_expr *ex
if (bfs_expr_warning(state->ctx, expr)) {
va_list args;
va_start(args, format);
- bfs_warning(state->ctx, format, args);
+ bfs_vwarning(state->ctx, format, args);
va_end(args);
}
}