summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
authorJonny007-MKD <nospam@jonny007-mkd.de>2021-05-24 20:40:02 +0200
committerSven Nierlein <sven@nierlein.org>2021-09-02 09:56:39 +0200
commitcfc43a327526d838db5ec81f5594df4a14319786 (patch)
tree177b439e8964832b5ed3e0455f05ea4c232f36f7 /plugins/check_dns.c
parent2056c5853175e6ad0e041ff3776e10d9e612b521 (diff)
downloadmonitoring-plugins-cfc43a327526d838db5ec81f5594df4a14319786.tar.gz
Improvements suggested by tobiaswiese
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 2f944f92..9de6caf5 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -41,7 +41,7 @@ const char *email = "devel@monitoring-plugins.org";
41 41
42int process_arguments (int, char **); 42int process_arguments (int, char **);
43int validate_arguments (void); 43int validate_arguments (void);
44int error_scan (char *, int*); 44int error_scan (char *, int *);
45int ip_match_cidr(const char *, const char *); 45int ip_match_cidr(const char *, const char *);
46unsigned long ip2long(const char *); 46unsigned long ip2long(const char *);
47void print_help (void); 47void print_help (void);
@@ -355,7 +355,7 @@ ip2long(const char* src) {
355} 355}
356 356
357int 357int
358error_scan (char *input_buffer, int* is_nxdomain) 358error_scan (char *input_buffer, int *is_nxdomain)
359{ 359{
360 360
361 const int nxdomain = strstr (input_buffer, "Non-existent") || 361 const int nxdomain = strstr (input_buffer, "Non-existent") ||