summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-11-05 23:04:32 +0100
committerKarel Kočí <cynerd@email.cz>2018-11-05 23:04:32 +0100
commitd7f641d5dd6c099d4a9274a18fcfb89df00d4b4c (patch)
treefa46c7ec3902a9549393df154f24b25ef7517875 /common.c
parent78d9d66ad6ce6455690670173623ad420d12170d (diff)
parent2b71a22755bae132a639fe10475a0d42e582d244 (diff)
downloadsurf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.tar.gz
surf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.tar.bz2
surf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.zip
Merge branch 'surf-webkit2' into mysurfv2.0.7
Diffstat (limited to 'common.c')
-rw-r--r--common.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/common.c b/common.c
new file mode 100644
index 0000000..42662ed
--- /dev/null
+++ b/common.c
@@ -0,0 +1,15 @@
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+void
+die(const char *errstr, ...)
+{
+ va_list ap;
+
+ va_start(ap, errstr);
+ vfprintf(stderr, errstr, ap);
+ va_end(ap);
+ exit(1);
+}
+