diff options
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 7cd2316..911853b 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -39,26 +39,26 @@ const char *email = "devel@monitoring-plugins.org"; | |||
39 | #include "netutils.h" | 39 | #include "netutils.h" |
40 | #include "runcmd.h" | 40 | #include "runcmd.h" |
41 | 41 | ||
42 | int process_arguments(int, char **); | 42 | static int process_arguments(int, char **); |
43 | int validate_arguments(void); | 43 | static int validate_arguments(void); |
44 | int error_scan(char *, bool *); | 44 | static int error_scan(char *, bool *); |
45 | bool ip_match_cidr(const char *, const char *); | 45 | static bool ip_match_cidr(const char *, const char *); |
46 | unsigned long ip2long(const char *); | 46 | static unsigned long ip2long(const char *); |
47 | void print_help(void); | 47 | static void print_help(void); |
48 | void print_usage(void); | 48 | void print_usage(void); |
49 | 49 | ||
50 | #define ADDRESS_LENGTH 256 | 50 | #define ADDRESS_LENGTH 256 |
51 | char query_address[ADDRESS_LENGTH] = ""; | 51 | static char query_address[ADDRESS_LENGTH] = ""; |
52 | char dns_server[ADDRESS_LENGTH] = ""; | 52 | static char dns_server[ADDRESS_LENGTH] = ""; |
53 | char ptr_server[ADDRESS_LENGTH] = ""; | 53 | static char ptr_server[ADDRESS_LENGTH] = ""; |
54 | bool verbose = false; | 54 | static bool verbose = false; |
55 | char **expected_address = NULL; | 55 | static char **expected_address = NULL; |
56 | int expected_address_cnt = 0; | 56 | static int expected_address_cnt = 0; |
57 | bool expect_nxdomain = false; | 57 | static bool expect_nxdomain = false; |
58 | 58 | ||
59 | bool expect_authority = false; | 59 | static bool expect_authority = false; |
60 | bool all_match = false; | 60 | static bool all_match = false; |
61 | thresholds *time_thresholds = NULL; | 61 | static thresholds *time_thresholds = NULL; |
62 | 62 | ||
63 | static int qstrcmp(const void *p1, const void *p2) { | 63 | static int qstrcmp(const void *p1, const void *p2) { |
64 | /* The actual arguments to this function are "pointers to | 64 | /* The actual arguments to this function are "pointers to |