summaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-03-13 21:22:33 +0100
committerLouis Burda <quent.burda@gmail.com>2023-03-13 21:22:33 +0100
commit0c2eda20ec1ce6d40a929a846771c4262ba3e1e7 (patch)
tree0d6739b6a311fabbe285aef45809a8884875e3e4 /src/test.c
parentfc0aa2c9c84fc09027f23d104917f4dd9b67b354 (diff)
downloadlibbitvec-c-master.tar.gz
libbitvec-c-master.zip
Negate errno in return, positive values reservedHEADmaster
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index 0f2bc55..0c8d3d8 100644
--- a/src/test.c
+++ b/src/test.c
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <string.h>
-#define LIBBITVEC_ERR(rc) errx(1, "libbitvec: %s", strerror(rc))
+#define LIBBITVEC_ERR(rc) errx(1, "libbitvec: %s", rc < 0 ? strerror(-rc) : "???")
int
main(int argc, const char **argv)