diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 11:37:20 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 11:37:20 +0100 |
| commit | 4dd024388e1f8be894e50dd0eb74d5c9f86b4233 (patch) | |
| tree | d6c672830f213c31ee8aa116ef5718869e59cd30 | |
| parent | a2e9ade442bb93d632d7ef5b734103b4e1e4b07a (diff) | |
| download | monitoring-plugins-4dd024388e1f8be894e50dd0eb74d5c9f86b4233.tar.gz | |
check_tcp: small cleanup
| -rw-r--r-- | plugins/check_tcp.c | 6 |
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" | ||
| 32 | char *progname; | 31 | char *progname; |
| 33 | const char *copyright = "1999-2025"; | 32 | const char *copyright = "1999-2025"; |
| 34 | const char *email = "devel@monitoring-plugins.org"; | 33 | const 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 | ||
| 62 | typedef struct process_arguments_wrapper { | 62 | typedef 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); */ | ||
| 68 | static check_tcp_config_wrapper process_arguments(int /*argc*/, char ** /*argv*/, check_tcp_config /*config*/); | 66 | static check_tcp_config_wrapper process_arguments(int /*argc*/, char ** /*argv*/, check_tcp_config /*config*/); |
| 69 | void print_help(const char *service); | 67 | void print_help(const char *service); |
| 70 | void print_usage(void); | 68 | void print_usage(void); |
