From c3a2f2c7ccabb4b43d342cfc35e3f72a37f895f1 Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Wed, 21 Feb 2024 20:27:37 +0100 Subject: [PATCH] always output error message in crash_and_burn() This aligns crash_and_burn() with errno_crash_and_burn() and addresses issue #300. --- src/fping.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fping.c b/src/fping.c index 6d584c2..532d96e 100644 --- a/src/fping.c +++ b/src/fping.c @@ -2680,9 +2680,7 @@ void add_addr(char *name, char *host, struct sockaddr *ipaddr, socklen_t ipaddr_ void crash_and_burn(char *message) { - if (verbose_flag) - fprintf(stderr, "%s: %s\n", prog, message); - + fprintf(stderr, "%s: %s\n", prog, message); exit(4); }