diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index eaff43728ae24f81dcf23235bde4019ca6e1d446..a0d6e85e5d9b9340e4a4dbe9ed8035c69140769e 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
/* 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, ':'));
}
}
/* 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");
}