diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 11:30:38 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 11:30:38 (GMT) |
commit | b7b8abb8533d8d21e76481eb26bae9215e56b2fd (patch) | |
tree | a38173ea1852a629357f4218741f390978fee595 /plugins | |
parent | 2031a5acebc8ade6b3775bae769b1decc1747be9 (diff) | |
download | monitoring-plugins-b7b8abb8533d8d21e76481eb26bae9215e56b2fd.tar.gz |
check_ldap: delare file local variables static
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_ldap.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 1c72829..87818da 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c | |||
@@ -47,37 +47,37 @@ enum { | |||
47 | DEFAULT_PORT = 389 | 47 | DEFAULT_PORT = 389 |
48 | }; | 48 | }; |
49 | 49 | ||
50 | int process_arguments (int, char **); | 50 | static int process_arguments (int, char **); |
51 | int validate_arguments (void); | 51 | static int validate_arguments (void); |
52 | void print_help (void); | 52 | static void print_help (void); |
53 | void print_usage (void); | 53 | void print_usage (void); |
54 | 54 | ||
55 | char ld_defattr[] = "(objectclass=*)"; | 55 | static char ld_defattr[] = "(objectclass=*)"; |
56 | char *ld_attr = ld_defattr; | 56 | static char *ld_attr = ld_defattr; |
57 | char *ld_host = NULL; | 57 | static char *ld_host = NULL; |
58 | char *ld_base = NULL; | 58 | static char *ld_base = NULL; |
59 | char *ld_passwd = NULL; | 59 | static char *ld_passwd = NULL; |
60 | char *ld_binddn = NULL; | 60 | static char *ld_binddn = NULL; |
61 | int ld_port = -1; | 61 | static int ld_port = -1; |
62 | #ifdef HAVE_LDAP_SET_OPTION | 62 | #ifdef HAVE_LDAP_SET_OPTION |
63 | int ld_protocol = DEFAULT_PROTOCOL; | 63 | static int ld_protocol = DEFAULT_PROTOCOL; |
64 | #endif | 64 | #endif |
65 | #ifndef LDAP_OPT_SUCCESS | 65 | #ifndef LDAP_OPT_SUCCESS |
66 | # define LDAP_OPT_SUCCESS LDAP_SUCCESS | 66 | # define LDAP_OPT_SUCCESS LDAP_SUCCESS |
67 | #endif | 67 | #endif |
68 | double warn_time = UNDEFINED; | 68 | static double warn_time = UNDEFINED; |
69 | double crit_time = UNDEFINED; | 69 | static double crit_time = UNDEFINED; |
70 | thresholds *entries_thresholds = NULL; | 70 | static thresholds *entries_thresholds = NULL; |
71 | struct timeval tv; | 71 | static struct timeval tv; |
72 | char* warn_entries = NULL; | 72 | static char* warn_entries = NULL; |
73 | char* crit_entries = NULL; | 73 | static char* crit_entries = NULL; |
74 | bool starttls = false; | 74 | static bool starttls = false; |
75 | bool ssl_on_connect = false; | 75 | static bool ssl_on_connect = false; |
76 | bool verbose = false; | 76 | static bool verbose = false; |
77 | 77 | ||
78 | /* for ldap tls */ | 78 | /* for ldap tls */ |
79 | 79 | ||
80 | char *SERVICE = "LDAP"; | 80 | static char *SERVICE = "LDAP"; |
81 | 81 | ||
82 | int | 82 | int |
83 | main (int argc, char *argv[]) | 83 | main (int argc, char *argv[]) |