Hi, please find attached a patch the replaces duplicate code in die() with a call to eprintf().
Alexis
>From 4ac1dd9e1c1be01b0e78b61be0f83198058454f8 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt <[email protected]> Date: Thu, 26 Nov 2015 15:04:42 +0100 Subject: [PATCH 4/4] Replace duplicate code with eprintf call --- sent.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sent.c b/sent.c index c9ce374..1921fe9 100644 --- a/sent.c +++ b/sent.c @@ -378,15 +378,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); } -- 2.6.3
