From ebb453f55ef6e64033ac50341963eb49cf457796 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 02:54:48 +0100 Subject: check_cluster: do not export local symbols diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c index 6ca43c6..0afb3f4 100644 --- a/plugins/check_cluster.c +++ b/plugins/check_cluster.c @@ -33,29 +33,29 @@ const char *email = "devel@monitoring-plugins.org"; #define CHECK_SERVICES 1 #define CHECK_HOSTS 2 -void print_help(void); +static void print_help(void); void print_usage(void); -int total_services_ok = 0; -int total_services_warning = 0; -int total_services_unknown = 0; -int total_services_critical = 0; +static int total_services_ok = 0; +static int total_services_warning = 0; +static int total_services_unknown = 0; +static int total_services_critical = 0; -int total_hosts_up = 0; -int total_hosts_down = 0; -int total_hosts_unreachable = 0; +static int total_hosts_up = 0; +static int total_hosts_down = 0; +static int total_hosts_unreachable = 0; -char *warn_threshold; -char *crit_threshold; +static char *warn_threshold; +static char *crit_threshold; -int check_type = CHECK_SERVICES; +static int check_type = CHECK_SERVICES; -char *data_vals = NULL; -char *label = NULL; +static char *data_vals = NULL; +static char *label = NULL; -int verbose = 0; +static int verbose = 0; -int process_arguments(int, char **); +static int process_arguments(int, char **); int main(int argc, char **argv) { char *ptr; -- cgit v0.10-9-g596f