From fa4a03e1a80d3de8c85172834326d51b936f316a Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 13 Mar 2025 00:49:16 +0100 Subject: use new output picker --- plugins/check_tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 793cfe7e..2cc6c398 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -28,6 +28,7 @@ *****************************************************************************/ /* progname "check_tcp" changes depending on symlink called */ +#include "output.h" char *progname; const char *copyright = "1999-2025"; const char *email = "devel@monitoring-plugins.org"; @@ -230,7 +231,7 @@ int main(int argc, char **argv) { // Initialize check stuff before setting timers mp_check overall = mp_check_init(); if (config.output_format_set) { - overall.format = config.output_format; + mp_set_format(config.output_format); } /* set up the timer */ -- cgit v1.2.3-74-g34f1