Introduction
Introduction Statistics Contact Development Disclaimer Help
Refactor die() to use eprintf() - sent - simple plaintext presentation tool
git clone git://git.suckless.org/sent
Log
Files
Refs
README
LICENSE
---
commit 91aeb01dcef28aea6e15ba7d1c9a094d01dfc41e
parent 824dae147e8c89465e09709764601d7d80dff819
Author: Alexis <[email protected]>
Date: Thu, 26 Nov 2015 15:20:09 +0100
Refactor die() to use eprintf()
Diffstat:
M sent.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git 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);
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.