[monitoring-plugins] check_tcp: small cleanup
Lorenz Kästle
git at monitoring-plugins.org
Thu Mar 13 15:20:13 CET 2025
Module: monitoring-plugins
Branch: master
Commit: 4dd024388e1f8be894e50dd0eb74d5c9f86b4233
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Thu Mar 13 11:37:20 2025 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4dd02438
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 at monitoring-plugins.org";
@@ -37,6 +36,7 @@ const char *email = "devel at monitoring-plugins.org";
#include "./netutils.h"
#include "./utils.h"
#include "./check_tcp.d/config.h"
+#include "output.h"
#include "states.h"
#include <sys/types.h>
@@ -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);
More information about the Commits
mailing list