aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-12-05 08:52:50 +0100
committerTharre <tharre3@gmail.com>2014-12-05 08:52:50 +0100
commitb8ffd5621f5495b0ad1a92a67b51b7e0e15b0b6e (patch)
tree991917a3be44acfed12922162f7f7443f4d919f7 /src/util.h
parent622bdcb7e36498b2bfdc193b00cf690a6a11512b (diff)
downloadredo-b8ffd5621f5495b0ad1a92a67b51b7e0e15b0b6e.tar.gz
redo-b8ffd5621f5495b0ad1a92a67b51b7e0e15b0b6e.tar.xz
redo-b8ffd5621f5495b0ad1a92a67b51b7e0e15b0b6e.zip
Improve error message handling for debugging
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util.h b/src/util.h
index db02cd4..5e46166 100644
--- a/src/util.h
+++ b/src/util.h
@@ -11,10 +11,7 @@
#include <stddef.h>
-#define DIE_HELPER(M, ...) die(M ": %s\n", __VA_ARGS__)
-#define fatal(...) DIE_HELPER(__VA_ARGS__, strerror(errno))
-
-extern void __attribute__((noreturn)) die(const char *err, ...);
+extern void __attribute__((noreturn)) die_(const char *err, ...);
extern void *xmalloc(size_t size);
extern void *xrealloc(void *ptr, size_t size);
extern char *xstrdup(const char *str);