From 91aeb01dcef28aea6e15ba7d1c9a094d01dfc41e Mon Sep 17 00:00:00 2001 From: Alexis Date: Thu, 26 Nov 2015 15:20:09 +0100 Subject: [PATCH] Refactor die() to use eprintf() --- sent.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sent.c b/sent.c index d6c2c0b..6b22e61 100644 --- 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); }