|
|
@@ -261,7 +261,7 @@ main (int argc, char **argv)
|
|
|
iresult = STATE_WARNING;
|
|
|
}
|
|
|
|
|
|
- result = max (result, iresult);
|
|
|
+ result = max_state (result, iresult);
|
|
|
|
|
|
if (nlabels > 1 && i < nlabels && labels[i] != NULL)
|
|
|
outbuff = ssprintf
|
|
|
@@ -292,14 +292,14 @@ main (int argc, char **argv)
|
|
|
|
|
|
/* WARNING if output found on stderr */
|
|
|
if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr))
|
|
|
- result = max (result, STATE_WARNING);
|
|
|
+ result = max_state (result, STATE_WARNING);
|
|
|
|
|
|
/* close stderr */
|
|
|
(void) fclose (child_stderr);
|
|
|
|
|
|
/* close the pipe */
|
|
|
if (spclose (child_process))
|
|
|
- result = max (result, STATE_WARNING);
|
|
|
+ result = max_state (result, STATE_WARNING);
|
|
|
|
|
|
if (nunits > 0)
|
|
|
printf ("%s %s -%s\n", label, state_text (result), outbuff);
|