aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.h b/util.h
index be1c5ec..9353849 100644
--- a/util.h
+++ b/util.h
@@ -3,11 +3,11 @@
#include <stdio.h>
#include <stdlib.h>
-#define err_die(...) {\
+#define err_die(r, ...) {\
fprintf(stderr, "err: %s:%d: ", __FILE__, __LINE__); \
fprintf(stderr, __VA_ARGS__); \
fputc('\n', stderr); \
- return 1; \
+ return r; \
}
int r_mkdir(const char *path, mode_t mode);