X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcheck_dns.c;h=a0d6e85e5d9b9340e4a4dbe9ed8035c69140769e;hb=f4c6f7f09305c1c9916da6ac4f7aadcb31e319e0;hp=eaff43728ae24f81dcf23235bde4019ca6e1d446;hpb=d36016a7adf28424d7f4adaa50612c41f1937c3b;p=nagiosplug.git diff --git a/plugins/check_dns.c b/plugins/check_dns.c index eaff437..a0d6e85 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"); }