diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:55:40 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:55:40 +0100 |
commit | 78258c4cd0dff4197e0642e6eb39a15c97c88807 (patch) | |
tree | a4e165c990b3a0c7240eaf59b07a151e75c39aa3 | |
parent | 6410ef8acbc1445fd49da5c199febb5c2930ad65 (diff) | |
download | monitoring-plugins-78258c4cd0dff4197e0642e6eb39a15c97c88807.tar.gz |
check_ssh: do not export local variables
-rw-r--r-- | plugins/check_ssh.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 9f805db4..b12cda1d 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -43,18 +43,18 @@ const char *email = "devel@monitoring-plugins.org"; | |||
43 | #define SSH_DFL_PORT 22 | 43 | #define SSH_DFL_PORT 22 |
44 | #define BUFF_SZ 256 | 44 | #define BUFF_SZ 256 |
45 | 45 | ||
46 | int port = -1; | 46 | static int port = -1; |
47 | char *server_name = NULL; | 47 | static char *server_name = NULL; |
48 | char *remote_version = NULL; | 48 | static char *remote_version = NULL; |
49 | char *remote_protocol = NULL; | 49 | static char *remote_protocol = NULL; |
50 | bool verbose = false; | 50 | static bool verbose = false; |
51 | 51 | ||
52 | int process_arguments(int, char **); | 52 | static int process_arguments(int, char **); |
53 | int validate_arguments(void); | 53 | static int validate_arguments(void); |
54 | void print_help(void); | 54 | static void print_help(void); |
55 | void print_usage(void); | 55 | void print_usage(void); |
56 | 56 | ||
57 | int ssh_connect(char *haddr, int hport, char *remote_version, char *remote_protocol); | 57 | static int ssh_connect(char *haddr, int hport, char *remote_version, char *remote_protocol); |
58 | 58 | ||
59 | int main(int argc, char **argv) { | 59 | int main(int argc, char **argv) { |
60 | int result = STATE_UNKNOWN; | 60 | int result = STATE_UNKNOWN; |