summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 03:30:42 +0100
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 03:30:42 +0100
commit702dc596a4a6ed124751c55cbd5c62f96ae8a157 (patch)
treec2ebffe0c249cb50bbfc039008be0581c8d809c0 /plugins
parent499c0a07ae42ef48b3a1f25031fb933c3c59e327 (diff)
downloadmonitoring-plugins-702dc596a4a6ed124751c55cbd5c62f96ae8a157.tar.gz
check_dns: do not export local variables
Diffstat (limited to 'plugins')
-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 7cd23162..911853b9 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