diff options
| -rw-r--r-- | plugins/check_tcp.c | 3 |
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" | ||
| 31 | char *progname; | 32 | char *progname; |
| 32 | const char *copyright = "1999-2025"; | 33 | const char *copyright = "1999-2025"; |
| 33 | const char *email = "devel@monitoring-plugins.org"; | 34 | const 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 */ |
