diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-09-27 12:11:15 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-09-27 12:12:46 -0400 |
commit | 52de184ba28551734e1cb13233588504ab5f62ec (patch) | |
tree | 5b3d417354e7880b97507d1e4cf01c200f6cf24f /src/diag.c | |
parent | b395bb33e6f7d875307b18a4f9318ed0d34934ca (diff) | |
download | bfs-52de184ba28551734e1cb13233588504ab5f62ec.tar.xz |
Formatting fixes
Diffstat (limited to 'src/diag.c')
-rw-r--r-- | src/diag.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,9 +4,9 @@ #include "diag.h" #include "alloc.h" #include "bfstd.h" -#include "ctx.h" #include "color.h" #include "config.h" +#include "ctx.h" #include "dstring.h" #include "expr.h" #include <errno.h> @@ -31,14 +31,14 @@ void bfs_perror(const struct bfs_ctx *ctx, const char *str) { bfs_error(ctx, "%s: %m.\n", str); } -void bfs_error(const struct bfs_ctx *ctx, const char *format, ...) { +void bfs_error(const struct bfs_ctx *ctx, const char *format, ...) { va_list args; va_start(args, format); bfs_verror(ctx, format, args); va_end(args); } -bool bfs_warning(const struct bfs_ctx *ctx, const char *format, ...) { +bool bfs_warning(const struct bfs_ctx *ctx, const char *format, ...) { va_list args; va_start(args, format); bool ret = bfs_vwarning(ctx, format, args); @@ -46,7 +46,7 @@ bool bfs_warning(const struct bfs_ctx *ctx, const char *format, ...) { return ret; } -bool bfs_debug(const struct bfs_ctx *ctx, enum debug_flags flag, const char *format, ...) { +bool bfs_debug(const struct bfs_ctx *ctx, enum debug_flags flag, const char *format, ...) { va_list args; va_start(args, format); bool ret = bfs_vdebug(ctx, flag, format, args); |