aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 8181c42..7a9c555 100644
--- a/src/common.h
+++ b/src/common.h
@@ -25,4 +25,18 @@ store32_le(uint8_t dst[4], uint32_t w)
dst[3] = (uint8_t) w;
}
+static void
+die(const char *msg)
+{
+ fprintf(stderr, "%s\n", msg);
+ exit(1);
+}
+
+static void
+diex(const char *msg)
+{
+ perror(msg);
+ exit(1);
+}
+
#endif