diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:34:24 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:34:24 +0100 |
commit | c7124379cd4e70d91e9af6eec4cf414849dc77d7 (patch) | |
tree | 7e3fc7b38f7a5cc7826073a5f3674bafb8e2511d | |
parent | 458af516886dc6e6373734f4c5b48ea0ffa7e987 (diff) | |
download | monitoring-plugins-c7124379cd4e70d91e9af6eec4cf414849dc77d7.tar.gz |
check_nt: delare file local variables static
-rw-r--r-- | plugins/check_nt.c | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 413aad6b..dec0b668 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
@@ -59,26 +59,25 @@ enum { | |||
59 | PORT = 1248 | 59 | PORT = 1248 |
60 | }; | 60 | }; |
61 | 61 | ||
62 | char *server_address = NULL; | 62 | static char *server_address = NULL; |
63 | char *volume_name = NULL; | 63 | static int server_port = PORT; |
64 | int server_port = PORT; | 64 | static char *value_list = NULL; |
65 | char *value_list = NULL; | 65 | static char *req_password = NULL; |
66 | char *req_password = NULL; | 66 | static unsigned long lvalue_list[MAX_VALUE_LIST]; |
67 | unsigned long lvalue_list[MAX_VALUE_LIST]; | 67 | static unsigned long warning_value = 0L; |
68 | unsigned long warning_value = 0L; | 68 | static unsigned long critical_value = 0L; |
69 | unsigned long critical_value = 0L; | 69 | static bool check_warning_value = false; |
70 | bool check_warning_value = false; | 70 | static bool check_critical_value = false; |
71 | bool check_critical_value = false; | 71 | static enum checkvars vars_to_check = CHECK_NONE; |
72 | enum checkvars vars_to_check = CHECK_NONE; | 72 | static bool show_all = false; |
73 | bool show_all = false; | 73 | |
74 | 74 | static char recv_buffer[MAX_INPUT_BUFFER]; | |
75 | char recv_buffer[MAX_INPUT_BUFFER]; | 75 | |
76 | 76 | static void fetch_data(const char *address, int port, const char *sendb); | |
77 | void fetch_data(const char *address, int port, const char *sendb); | 77 | static int process_arguments(int /*argc*/, char ** /*argv*/); |
78 | int process_arguments(int, char **); | 78 | static void preparelist(char *string); |
79 | void preparelist(char *string); | 79 | static bool strtoularray(unsigned long *array, char *string, const char *delim); |
80 | bool strtoularray(unsigned long *array, char *string, const char *delim); | 80 | static void print_help(void); |
81 | void print_help(void); | ||
82 | void print_usage(void); | 81 | void print_usage(void); |
83 | 82 | ||
84 | int main(int argc, char **argv) { | 83 | int main(int argc, char **argv) { |