[monitoring-plugins] check_ssh: do not export local variables
Lorenz Kästle
git at monitoring-plugins.org
Thu Oct 31 16:20:13 CET 2024
Module: monitoring-plugins
Branch: master
Commit: 78258c4cd0dff4197e0642e6eb39a15c97c88807
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Thu Oct 31 15:55:40 2024 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=78258c4
check_ssh: do not export local variables
---
plugins/check_ssh.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 9f805db..b12cda1 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -43,18 +43,18 @@ const char *email = "devel at monitoring-plugins.org";
#define SSH_DFL_PORT 22
#define BUFF_SZ 256
-int port = -1;
-char *server_name = NULL;
-char *remote_version = NULL;
-char *remote_protocol = NULL;
-bool verbose = false;
-
-int process_arguments(int, char **);
-int validate_arguments(void);
-void print_help(void);
+static int port = -1;
+static char *server_name = NULL;
+static char *remote_version = NULL;
+static char *remote_protocol = NULL;
+static bool verbose = false;
+
+static int process_arguments(int, char **);
+static int validate_arguments(void);
+static void print_help(void);
void print_usage(void);
-int ssh_connect(char *haddr, int hport, char *remote_version, char *remote_protocol);
+static int ssh_connect(char *haddr, int hport, char *remote_version, char *remote_protocol);
int main(int argc, char **argv) {
int result = STATE_UNKNOWN;
More information about the Commits
mailing list