summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:55:40 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:55:40 +0100
commit78258c4cd0dff4197e0642e6eb39a15c97c88807 (patch)
treea4e165c990b3a0c7240eaf59b07a151e75c39aa3
parent6410ef8acbc1445fd49da5c199febb5c2930ad65 (diff)
downloadmonitoring-plugins-78258c4cd0dff4197e0642e6eb39a15c97c88807.tar.gz
check_ssh: do not export local variables
-rw-r--r--plugins/check_ssh.c20
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
46int port = -1; 46static int port = -1;
47char *server_name = NULL; 47static char *server_name = NULL;
48char *remote_version = NULL; 48static char *remote_version = NULL;
49char *remote_protocol = NULL; 49static char *remote_protocol = NULL;
50bool verbose = false; 50static bool verbose = false;
51 51
52int process_arguments(int, char **); 52static int process_arguments(int, char **);
53int validate_arguments(void); 53static int validate_arguments(void);
54void print_help(void); 54static void print_help(void);
55void print_usage(void); 55void print_usage(void);
56 56
57int ssh_connect(char *haddr, int hport, char *remote_version, char *remote_protocol); 57static int ssh_connect(char *haddr, int hport, char *remote_version, char *remote_protocol);
58 58
59int main(int argc, char **argv) { 59int main(int argc, char **argv) {
60 int result = STATE_UNKNOWN; 60 int result = STATE_UNKNOWN;