From 78258c4cd0dff4197e0642e6eb39a15c97c88807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:55:40 +0100 Subject: check_ssh: do not export local variables 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@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; -- cgit v0.10-9-g596f