[monitoring-plugins] check_overcr: delare file local variables static
Lorenz Kästle
git at monitoring-plugins.org
Fri Nov 8 23:10:12 CET 2024
Module: monitoring-plugins
Branch: master
Commit: 2031a5acebc8ade6b3775bae769b1decc1747be9
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Fri Nov 8 12:20:03 2024 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=2031a5a
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 e80d477..599540b 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;
More information about the Commits
mailing list