summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 12:20:03 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 12:20:03 +0100
commit2031a5acebc8ade6b3775bae769b1decc1747be9 (patch)
treebe15ee24111684d1e2d3cf6d517288df04042f3c
parent9cd8294e99586fcbc4344b8e287886bd9788f969 (diff)
downloadmonitoring-plugins-2031a5acebc8ade6b3775bae769b1decc1747be9.tar.gz
check_overcr: delare file local variables static
-rw-r--r--plugins/check_overcr.c31
1 files 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 {
52 PORT = 2000 52 PORT = 2000
53}; 53};
54 54
55char *server_address = NULL; 55static char *server_address = NULL;
56int server_port = PORT; 56static int server_port = PORT;
57double warning_value = 0L; 57static double warning_value = 0L;
58double critical_value = 0L; 58static double critical_value = 0L;
59bool check_warning_value = false; 59static bool check_warning_value = false;
60bool check_critical_value = false; 60static bool check_critical_value = false;
61enum checkvar vars_to_check = NONE; 61static enum checkvar vars_to_check = NONE;
62int cmd_timeout = 1; 62
63 63static int netstat_port = 0;
64int netstat_port = 0; 64static char *disk_name = NULL;
65char *disk_name = NULL; 65static char *process_name = NULL;
66char *process_name = NULL; 66static char send_buffer[MAX_INPUT_BUFFER];
67char send_buffer[MAX_INPUT_BUFFER]; 67
68 68static int process_arguments(int, char **);
69int process_arguments(int, char **);
70void print_usage(void); 69void print_usage(void);
71void print_help(void); 70static void print_help(void);
72 71
73int main(int argc, char **argv) { 72int main(int argc, char **argv) {
74 int result = STATE_UNKNOWN; 73 int result = STATE_UNKNOWN;