summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-13 11:37:20 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-13 11:37:20 +0100
commit4dd024388e1f8be894e50dd0eb74d5c9f86b4233 (patch)
treed6c672830f213c31ee8aa116ef5718869e59cd30
parenta2e9ade442bb93d632d7ef5b734103b4e1e4b07a (diff)
downloadmonitoring-plugins-4dd024388e1f8be894e50dd0eb74d5c9f86b4233.tar.gz
check_tcp: small cleanup
-rw-r--r--plugins/check_tcp.c6
1 files 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 @@
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"
32char *progname; 31char *progname;
33const char *copyright = "1999-2025"; 32const char *copyright = "1999-2025";
34const char *email = "devel@monitoring-plugins.org"; 33const char *email = "devel@monitoring-plugins.org";
@@ -37,6 +36,7 @@ const char *email = "devel@monitoring-plugins.org";
37#include "./netutils.h" 36#include "./netutils.h"
38#include "./utils.h" 37#include "./utils.h"
39#include "./check_tcp.d/config.h" 38#include "./check_tcp.d/config.h"
39#include "output.h"
40#include "states.h" 40#include "states.h"
41 41
42#include <sys/types.h> 42#include <sys/types.h>
@@ -59,12 +59,10 @@ ssize_t my_send(char *buf, size_t len) {
59#endif // HAVE_SSL 59#endif // HAVE_SSL
60} 60}
61 61
62typedef struct process_arguments_wrapper { 62typedef struct {
63 int errorcode; 63 int errorcode;
64 check_tcp_config config; 64 check_tcp_config config;
65} check_tcp_config_wrapper; 65} check_tcp_config_wrapper;
66
67/* int my_recv(char *, size_t); */
68static check_tcp_config_wrapper process_arguments(int /*argc*/, char ** /*argv*/, check_tcp_config /*config*/); 66static check_tcp_config_wrapper process_arguments(int /*argc*/, char ** /*argv*/, check_tcp_config /*config*/);
69void print_help(const char *service); 67void print_help(const char *service);
70void print_usage(void); 68void print_usage(void);