aboutsummaryrefslogtreecommitdiffstats
path: root/bin/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/common.c')
-rw-r--r--bin/common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/common.c b/bin/common.c
new file mode 100644
index 0000000..0a5f5c5
--- /dev/null
+++ b/bin/common.c
@@ -0,0 +1,10 @@
1#include <stdio.h>
2#include <errno.h>
3
4#include "common.h"
5
6void bail_out(const char* msg)
7{
8 perror(msg);
9 exit(-1 * errno);
10}