From 2031a5acebc8ade6b3775bae769b1decc1747be9 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:20:03 +0100 Subject: check_overcr: delare file local variables static --- plugins/check_overcr.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c index e80d4775..599540b7 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c @@ -52,23 +52,22 @@ enum { PORT = 2000 }; -char *server_address = NULL; -int server_port = PORT; -double warning_value = 0L; -double critical_value = 0L; -bool check_warning_value = false; -bool check_critical_value = false; -enum checkvar vars_to_check = NONE; -int cmd_timeout = 1; - -int netstat_port = 0; -char *disk_name = NULL; -char *process_name = NULL; -char send_buffer[MAX_INPUT_BUFFER]; - -int process_arguments(int, char **); +static char *server_address = NULL; +static int server_port = PORT; +static double warning_value = 0L; +static double critical_value = 0L; +static bool check_warning_value = false; +static bool check_critical_value = false; +static enum checkvar vars_to_check = NONE; + +static int netstat_port = 0; +static char *disk_name = NULL; +static char *process_name = NULL; +static char send_buffer[MAX_INPUT_BUFFER]; + +static int process_arguments(int, char **); void print_usage(void); -void print_help(void); +static void print_help(void); int main(int argc, char **argv) { int result = STATE_UNKNOWN; -- cgit v1.2.3-74-g34f1