diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 02:21:37 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 02:21:37 (GMT) |
commit | f0d780384219dabb5b7ad569a7dfb3576b199230 (patch) | |
tree | a6521b25ff2105ab185b3a10753819de2a29a041 /plugins | |
parent | 904d1ef78dabae2e9fb1f57dfb7d43ecdf294fd3 (diff) | |
download | monitoring-plugins-f0d780384219dabb5b7ad569a7dfb3576b199230.tar.gz |
check_dig: do not export local symbols
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_dig.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 37e0e24..e5f9993 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -41,27 +41,27 @@ const char *email = "devel@monitoring-plugins.org"; | |||
41 | #include "utils.h" | 41 | #include "utils.h" |
42 | #include "runcmd.h" | 42 | #include "runcmd.h" |
43 | 43 | ||
44 | int process_arguments(int, char **); | 44 | static int process_arguments(int /*argc*/, char ** /*argv*/); |
45 | int validate_arguments(void); | 45 | static int validate_arguments(void); |
46 | void print_help(void); | 46 | static void print_help(void); |
47 | void print_usage(void); | 47 | void print_usage(void); |
48 | 48 | ||
49 | #define UNDEFINED 0 | 49 | #define UNDEFINED 0 |
50 | #define DEFAULT_PORT 53 | 50 | #define DEFAULT_PORT 53 |
51 | #define DEFAULT_TRIES 2 | 51 | #define DEFAULT_TRIES 2 |
52 | 52 | ||
53 | char *query_address = NULL; | 53 | static char *query_address = NULL; |
54 | char *record_type = "A"; | 54 | static char *record_type = "A"; |
55 | char *expected_address = NULL; | 55 | static char *expected_address = NULL; |
56 | char *dns_server = NULL; | 56 | static char *dns_server = NULL; |
57 | char *dig_args = ""; | 57 | static char *dig_args = ""; |
58 | char *query_transport = ""; | 58 | static char *query_transport = ""; |
59 | bool verbose = false; | 59 | static bool verbose = false; |
60 | int server_port = DEFAULT_PORT; | 60 | static int server_port = DEFAULT_PORT; |
61 | int number_tries = DEFAULT_TRIES; | 61 | static int number_tries = DEFAULT_TRIES; |
62 | double warning_interval = UNDEFINED; | 62 | static double warning_interval = UNDEFINED; |
63 | double critical_interval = UNDEFINED; | 63 | static double critical_interval = UNDEFINED; |
64 | struct timeval tv; | 64 | static struct timeval tv; |
65 | 65 | ||
66 | int main(int argc, char **argv) { | 66 | int main(int argc, char **argv) { |
67 | char *command_line; | 67 | char *command_line; |