diff options
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -9,6 +9,12 @@ uint16_t inet_atop(const char *port) { return htons(atoi(port)); } +void herrc(int output, const char* funcName) { + if (output < 0 && errno != EINTR) { + perror(funcName); + } +} + void herr(int output, const char* funcName) { if (output < 0) { perror(funcName); |
