aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
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 eaff4372..a0d6e85e 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -150,7 +150,7 @@ main (int argc, char **argv)
/* scan stderr */
while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) {
if (error_scan (input_buffer) != STATE_OK) {
- result = max (result, error_scan (input_buffer));
+ result = max_state (result, error_scan (input_buffer));
output = strscpy (output, 1 + index (input_buffer, ':'));
}
}
@@ -160,7 +160,7 @@ main (int argc, char **argv)
/* close stdout */
if (spclose (child_process)) {
- result = max (result, STATE_WARNING);
+ result = max_state (result, STATE_WARNING);
if (!strcmp (output, ""))
output = strscpy (output, "nslookup returned error status");
}