[hackers] [sent] Refactor die() to use eprintf() || Alexis
commit 91aeb01dcef28aea6e15ba7d1c9a094d01dfc41e
Author: Alexis <surryhill_AT_gmail.com>
AuthorDate: Thu Nov 26 15:20:09 2015 +0100
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Thu Dec 3 23:00:44 2015 +0100
Refactor die() to use eprintf()
diff --git a/sent.c b/sent.c
index d6c2c0b..6b22e61 100644
--- a/sent.c
+++ b/sent.c
_AT_@ -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);
}
Received on Thu Dec 03 2015 - 23:00:51 CET
This archive was generated by hypermail 2.3.0
: Thu Dec 03 2015 - 23:12:14 CET