diff options
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
150 | /* scan stderr */ | 150 | /* scan stderr */ |
151 | while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { | 151 | while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { |
152 | if (error_scan (input_buffer) != STATE_OK) { | 152 | if (error_scan (input_buffer) != STATE_OK) { |
153 | result = max (result, error_scan (input_buffer)); | 153 | result = max_state (result, error_scan (input_buffer)); |
154 | output = strscpy (output, 1 + index (input_buffer, ':')); | 154 | output = strscpy (output, 1 + index (input_buffer, ':')); |
155 | } | 155 | } |
156 | } | 156 | } |
@@ -160,7 +160,7 @@ main (int argc, char **argv) | |||
160 | 160 | ||
161 | /* close stdout */ | 161 | /* close stdout */ |
162 | if (spclose (child_process)) { | 162 | if (spclose (child_process)) { |
163 | result = max (result, STATE_WARNING); | 163 | result = max_state (result, STATE_WARNING); |
164 | if (!strcmp (output, "")) | 164 | if (!strcmp (output, "")) |
165 | output = strscpy (output, "nslookup returned error status"); | 165 | output = strscpy (output, "nslookup returned error status"); |
166 | } | 166 | } |