summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_dns.c34
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
42int process_arguments(int, char **); 42static int process_arguments(int, char **);
43int validate_arguments(void); 43static int validate_arguments(void);
44int error_scan(char *, bool *); 44static int error_scan(char *, bool *);
45bool ip_match_cidr(const char *, const char *); 45static bool ip_match_cidr(const char *, const char *);
46unsigned long ip2long(const char *); 46static unsigned long ip2long(const char *);
47void print_help(void); 47static void print_help(void);
48void print_usage(void); 48void print_usage(void);
49 49
50#define ADDRESS_LENGTH 256 50#define ADDRESS_LENGTH 256
51char query_address[ADDRESS_LENGTH] = ""; 51static char query_address[ADDRESS_LENGTH] = "";
52char dns_server[ADDRESS_LENGTH] = ""; 52static char dns_server[ADDRESS_LENGTH] = "";
53char ptr_server[ADDRESS_LENGTH] = ""; 53static char ptr_server[ADDRESS_LENGTH] = "";
54bool verbose = false; 54static bool verbose = false;
55char **expected_address = NULL; 55static char **expected_address = NULL;
56int expected_address_cnt = 0; 56static int expected_address_cnt = 0;
57bool expect_nxdomain = false; 57static bool expect_nxdomain = false;
58 58
59bool expect_authority = false; 59static bool expect_authority = false;
60bool all_match = false; 60static bool all_match = false;
61thresholds *time_thresholds = NULL; 61static thresholds *time_thresholds = NULL;
62 62
63static int qstrcmp(const void *p1, const void *p2) { 63static 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