projects
/
sent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
824dae1
)
Refactor die() to use eprintf()
author
Alexis
<surryhill@gmail.com>
Thu, 26 Nov 2015 14:20:09 +0000
(15:20 +0100)
committer
Markus Teich
<markus.teich@stusta.mhn.de>
Thu, 3 Dec 2015 22:00:44 +0000
(23:00 +0100)
sent.c
patch
|
blob
|
history
diff --git
a/sent.c
b/sent.c
index d6c2c0b5777ca4dedce24d2344d1d9880d562502..6b22e61aef973f0b3a50468e45e30add4a91e4ee 100644
(file)
--- a/
sent.c
+++ b/
sent.c
@@
-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);
}