diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:20:03 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:20:03 +0100 |
commit | 2031a5acebc8ade6b3775bae769b1decc1747be9 (patch) | |
tree | be15ee24111684d1e2d3cf6d517288df04042f3c /plugins | |
parent | 9cd8294e99586fcbc4344b8e287886bd9788f969 (diff) | |
download | monitoring-plugins-2031a5acebc8ade6b3775bae769b1decc1747be9.tar.gz |
check_overcr: delare file local variables static
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_overcr.c | 31 |
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 | ||
55 | char *server_address = NULL; | 55 | static char *server_address = NULL; |
56 | int server_port = PORT; | 56 | static int server_port = PORT; |
57 | double warning_value = 0L; | 57 | static double warning_value = 0L; |
58 | double critical_value = 0L; | 58 | static double critical_value = 0L; |
59 | bool check_warning_value = false; | 59 | static bool check_warning_value = false; |
60 | bool check_critical_value = false; | 60 | static bool check_critical_value = false; |
61 | enum checkvar vars_to_check = NONE; | 61 | static enum checkvar vars_to_check = NONE; |
62 | int cmd_timeout = 1; | 62 | |
63 | 63 | static int netstat_port = 0; | |
64 | int netstat_port = 0; | 64 | static char *disk_name = NULL; |
65 | char *disk_name = NULL; | 65 | static char *process_name = NULL; |
66 | char *process_name = NULL; | 66 | static char send_buffer[MAX_INPUT_BUFFER]; |
67 | char send_buffer[MAX_INPUT_BUFFER]; | 67 | |
68 | 68 | static int process_arguments(int, char **); | |
69 | int process_arguments(int, char **); | ||
70 | void print_usage(void); | 69 | void print_usage(void); |
71 | void print_help(void); | 70 | static void print_help(void); |
72 | 71 | ||
73 | int main(int argc, char **argv) { | 72 | int main(int argc, char **argv) { |
74 | int result = STATE_UNKNOWN; | 73 | int result = STATE_UNKNOWN; |