[monitoring-plugins] Remove a few unnecessary trailing newlines from ...

GitHub git at monitoring-plugins.org
Mon Jun 8 13:20:12 CEST 2026


    Module: monitoring-plugins
    Branch: master
    Commit: 47b1b2d754d4809006f6dc1aa13ba9c80405975c
    Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Mon Jun  8 13:19:31 2026 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=47b1b2d7

Remove a few unnecessary trailing newlines from error messages (#2274)

Co-authored-by: Lorenz Kästle <lorenz.kaestle at netways.de>

---

 plugins/netutils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/netutils.c b/plugins/netutils.c
index f9933ebd..29b31366 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -46,9 +46,9 @@ void socket_timeout_alarm_handler(int sig) {
 	timeout_sc = mp_set_subcheck_state(timeout_sc, socket_timeout_state);
 
 	if (sig == SIGALRM) {
-		xasprintf(&timeout_sc.output, _("Socket timeout after %d seconds\n"), socket_timeout);
+		xasprintf(&timeout_sc.output, _("Socket timeout after %d seconds"), socket_timeout);
 	} else {
-		xasprintf(&timeout_sc.output, _("Abnormal timeout after %d seconds\n"), socket_timeout);
+		xasprintf(&timeout_sc.output, _("Abnormal timeout after %d seconds"), socket_timeout);
 	}
 
 	mp_check overall = mp_check_init();



More information about the Commits mailing list