aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-11-24 21:47:23 +0100
committerTharre <tharre3@gmail.com>2014-11-24 21:47:23 +0100
commita057243ef11e64a9659ff5f5a96cd3b14777dafc (patch)
tree1e9e86ef59db58e0857922367ab772e095fa4e5a /src/util.h
parentf907d26292168cd9ba8900f3deec513c257c4ffc (diff)
downloadredo-a057243ef11e64a9659ff5f5a96cd3b14777dafc.tar.gz
redo-a057243ef11e64a9659ff5f5a96cd3b14777dafc.tar.xz
redo-a057243ef11e64a9659ff5f5a96cd3b14777dafc.zip
Rename diem to fatal to further confuse matters.
It's actually pretty easy now, fatal() is used as a short cut for appending the strerror'd errno, while die() is just the generic version of printing errors that behaves just like fprintf(stderr, msg) + exit().
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 0cac914..db02cd4 100644
--- a/src/util.h
+++ b/src/util.h
@@ -12,7 +12,7 @@
#include <stddef.h>
#define DIE_HELPER(M, ...) die(M ": %s\n", __VA_ARGS__)
-#define diem(...) DIE_HELPER(__VA_ARGS__, strerror(errno))
+#define fatal(...) DIE_HELPER(__VA_ARGS__, strerror(errno))
extern void __attribute__((noreturn)) die(const char *err, ...);
extern void *xmalloc(size_t size);