diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:36:41 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:36:41 +0100 |
commit | 5130e5b0d3591866488bd03b00ca383cd7674b3c (patch) | |
tree | e5ed8ef1b719014d259162e2fcc7c8a56460c7b9 | |
parent | e3efbb796a58e02eceeef2e12b1f159d687a1b2b (diff) | |
download | monitoring-plugins-5130e5b0d3591866488bd03b00ca383cd7674b3c.tar.gz |
check_nwstat: delare file local variables static
-rw-r--r-- | plugins/check_nwstat.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index 3af63603..176dfbc8 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c | |||
@@ -89,30 +89,30 @@ enum { | |||
89 | PORT = 9999 | 89 | PORT = 9999 |
90 | }; | 90 | }; |
91 | 91 | ||
92 | char *server_address = NULL; | 92 | static char *server_address = NULL; |
93 | char *volume_name = NULL; | 93 | static char *volume_name = NULL; |
94 | char *nlm_name = NULL; | 94 | static char *nlm_name = NULL; |
95 | char *nrmp_name = NULL; | 95 | static char *nrmp_name = NULL; |
96 | char *nrmm_name = NULL; | 96 | static char *nrmm_name = NULL; |
97 | char *nrms_name = NULL; | 97 | static char *nrms_name = NULL; |
98 | char *nss1_name = NULL; | 98 | static char *nss1_name = NULL; |
99 | char *nss2_name = NULL; | 99 | static char *nss2_name = NULL; |
100 | char *nss3_name = NULL; | 100 | static char *nss3_name = NULL; |
101 | char *nss4_name = NULL; | 101 | static char *nss4_name = NULL; |
102 | char *nss5_name = NULL; | 102 | static char *nss5_name = NULL; |
103 | char *nss6_name = NULL; | 103 | static char *nss6_name = NULL; |
104 | char *nss7_name = NULL; | 104 | static char *nss7_name = NULL; |
105 | int server_port = PORT; | 105 | static int server_port = PORT; |
106 | unsigned long warning_value = 0L; | 106 | static unsigned long warning_value = 0L; |
107 | unsigned long critical_value = 0L; | 107 | static unsigned long critical_value = 0L; |
108 | bool check_warning_value = false; | 108 | static bool check_warning_value = false; |
109 | bool check_critical_value = false; | 109 | static bool check_critical_value = false; |
110 | bool check_netware_version = false; | 110 | static bool check_netware_version = false; |
111 | enum checkvar vars_to_check = NONE; | 111 | static enum checkvar vars_to_check = NONE; |
112 | int sap_number = -1; | 112 | static int sap_number = -1; |
113 | 113 | ||
114 | int process_arguments(int, char **); | 114 | static int process_arguments(int /*argc*/, char ** /*argv*/); |
115 | void print_help(void); | 115 | static void print_help(void); |
116 | void print_usage(void); | 116 | void print_usage(void); |
117 | 117 | ||
118 | int main(int argc, char **argv) { | 118 | int main(int argc, char **argv) { |