From 4dd024388e1f8be894e50dd0eb74d5c9f86b4233 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 13 Mar 2025 11:37:20 +0100 Subject: check_tcp: small cleanup --- plugins/check_tcp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 2878fd60..833cdc0c 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -28,7 +28,6 @@ *****************************************************************************/ /* 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"; @@ -37,6 +36,7 @@ const char *email = "devel@monitoring-plugins.org"; #include "./netutils.h" #include "./utils.h" #include "./check_tcp.d/config.h" +#include "output.h" #include "states.h" #include @@ -59,12 +59,10 @@ ssize_t my_send(char *buf, size_t len) { #endif // HAVE_SSL } -typedef struct process_arguments_wrapper { +typedef struct { int errorcode; check_tcp_config config; } check_tcp_config_wrapper; - -/* int my_recv(char *, size_t); */ static check_tcp_config_wrapper process_arguments(int /*argc*/, char ** /*argv*/, check_tcp_config /*config*/); void print_help(const char *service); void print_usage(void); -- cgit v1.2.3-74-g34f1