[PATCH 4/4] Replace duplicate code with eprintf call

From: Alexis Hildebrandt <afh_AT_surryhill.net>
Date: Thu, 26 Nov 2015 15:04:42 +0100

---
 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
_AT_@ -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
--jho1yZJdad60DJr+--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Thu Nov 26 2015 - 15:24:16 CET