diff options
| author | 2017-12-30 08:53:57 +0100 | |
|---|---|---|
| committer | 2017-12-30 08:54:12 +0100 | |
| commit | d648e4122e8191f109b1407933da7e0486416d93 (patch) | |
| tree | 20b73a46f14a2202dd5db7b04738a6f1bb1c0474 /src/common.h | |
| parent | 8c8da901528659820ff40f923fe3a4b69d76e94a (diff) | |
| download | tweetpipe-d648e4122e8191f109b1407933da7e0486416d93.tar.gz | |
Helpers
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 14 |
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 |