diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-17 13:13:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-17 13:57:01 -0400 |
commit | c70e7375b1808b23fe4db2018d5e8c9bcb70464d (patch) | |
tree | b84fca909d89c7d5a7f461c7cafeae0058bdca79 /tests/main.c | |
parent | c3d6f07b8e4d22df533ce7a90660ae1da2df5476 (diff) | |
download | bfs-c70e7375b1808b23fe4db2018d5e8c9bcb70464d.tar.xz |
diag: New helpers to include xstrerror(errno) automatically
Diffstat (limited to 'tests/main.c')
-rw-r--r-- | tests/main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/main.c b/tests/main.c index 58def32..aef0583 100644 --- a/tests/main.c +++ b/tests/main.c @@ -9,7 +9,6 @@ #include "tests.h" #include "bfstd.h" #include "color.h" -#include <errno.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> @@ -90,10 +89,6 @@ static void run_test(struct test_ctx *ctx, const char *test, test_fn *fn) { } } -const char *bfs_errstr(void) { - return xstrerror(errno); -} - int main(int argc, char *argv[]) { // Try to set a UTF-8 locale if (!setlocale(LC_ALL, "C.UTF-8")) { |