diff options
author | Alexis <surryhill@gmail.com> | 2015-11-26 15:20:09 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2015-12-03 23:00:44 +0100 |
commit | 91aeb01dcef28aea6e15ba7d1c9a094d01dfc41e (patch) | |
tree | c90b0387bca154b6020182ba7c01706bb72fbd86 /sent.c | |
parent | 824dae147e8c89465e09709764601d7d80dff819 (diff) |
Refactor die() to use eprintf()
Diffstat (limited to 'sent.c')
-rw-r--r-- | sent.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -376,15 +376,9 @@ void die(const char *fmt, ...) va_list ap; va_start(ap, fmt); - vfprintf(stderr, fmt, ap); + eprintf(fmt, ap); va_end(ap); - if (fmt[0] != '\0' && fmt[strlen(fmt)-1] == ':') { - fputc(' ', stderr); - perror(NULL); - } else { - fputc('\n', stderr); - } exit(1); } |