diff options
-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; |