aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Jonny007-MKD <nospam@jonny007-mkd.de> 2021-05-24 20:40:02 +0200
committerGravatar Sven Nierlein <sven@nierlein.org> 2021-09-02 09:56:39 +0200
commitcfc43a327526d838db5ec81f5594df4a14319786 (patch)
tree177b439e8964832b5ed3e0455f05ea4c232f36f7 /plugins
parent2056c5853175e6ad0e041ff3776e10d9e612b521 (diff)
downloadmonitoring-plugins-cfc43a327526d838db5ec81f5594df4a14319786.tar.gz
Improvements suggested by tobiaswiese
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_dns.c4
-rw-r--r--plugins/t/check_dns.t2
2 files changed, 3 insertions, 3 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";
int process_arguments (int, char **);
int validate_arguments (void);
-int error_scan (char *, int*);
+int error_scan (char *, int *);
int ip_match_cidr(const char *, const char *);
unsigned long ip2long(const char *);
void print_help (void);
@@ -355,7 +355,7 @@ ip2long(const char* src) {
}
int
-error_scan (char *input_buffer, int* is_nxdomain)
+error_scan (char *input_buffer, int *is_nxdomain)
{
const int nxdomain = strstr (input_buffer, "Non-existent") ||
diff --git a/plugins/t/check_dns.t b/plugins/t/check_dns.t
index 1e7d5340..afb2062d 100644
--- a/plugins/t/check_dns.t
+++ b/plugins/t/check_dns.t
@@ -58,7 +58,7 @@ my $dns_server = getTestParameter(
my $host_nonresponsive = getTestParameter(
"NP_HOST_NONRESPONSIVE",
"The hostname of system not responsive to network requests",
- "192.0.2.0",
+ "10.0.0.1",
);
my $res;