Code

more POSIX return value comparison related code fixes
[nagiosplug.git] / plugins / check_hpjd.c
index 9d1878a4509035e6b5054962a015172d93a74641..b45dfcc7bd1b721a9ce9c863683b3bcbc980e7b6 100644 (file)
@@ -285,14 +285,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 there wasn't any output, display an error */
        if (line == 0) {