summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_tcp.c3
1 files changed, 2 insertions, 1 deletions
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 @@
28 *****************************************************************************/ 28 *****************************************************************************/
29 29
30/* progname "check_tcp" changes depending on symlink called */ 30/* progname "check_tcp" changes depending on symlink called */
31#include "output.h"
31char *progname; 32char *progname;
32const char *copyright = "1999-2025"; 33const char *copyright = "1999-2025";
33const char *email = "devel@monitoring-plugins.org"; 34const char *email = "devel@monitoring-plugins.org";
@@ -230,7 +231,7 @@ int main(int argc, char **argv) {
230 // Initialize check stuff before setting timers 231 // Initialize check stuff before setting timers
231 mp_check overall = mp_check_init(); 232 mp_check overall = mp_check_init();
232 if (config.output_format_set) { 233 if (config.output_format_set) {
233 overall.format = config.output_format; 234 mp_set_format(config.output_format);
234 } 235 }
235 236
236 /* set up the timer */ 237 /* set up the timer */