diff options
Diffstat (limited to 'plugins/check_hpjd.c')
-rw-r--r-- | plugins/check_hpjd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 9d1878a4..b45dfcc7 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
@@ -285,14 +285,14 @@ main (int argc, char **argv) | |||
285 | 285 | ||
286 | /* WARNING if output found on stderr */ | 286 | /* WARNING if output found on stderr */ |
287 | if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) | 287 | if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) |
288 | result = max (result, STATE_WARNING); | 288 | result = max_state (result, STATE_WARNING); |
289 | 289 | ||
290 | /* close stderr */ | 290 | /* close stderr */ |
291 | (void) fclose (child_stderr); | 291 | (void) fclose (child_stderr); |
292 | 292 | ||
293 | /* close the pipe */ | 293 | /* close the pipe */ |
294 | if (spclose (child_process)) | 294 | if (spclose (child_process)) |
295 | result = max (result, STATE_WARNING); | 295 | result = max_state (result, STATE_WARNING); |
296 | 296 | ||
297 | /* if there wasn't any output, display an error */ | 297 | /* if there wasn't any output, display an error */ |
298 | if (line == 0) { | 298 | if (line == 0) { |