diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |