diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-19 05:11:52 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-19 05:11:52 +0000 |
commit | f4c6f7f09305c1c9916da6ac4f7aadcb31e319e0 (patch) | |
tree | bec7f042f90eac26b30122806846fc6a0e3f13b7 /plugins/check_hpjd.c | |
parent | d36016a7adf28424d7f4adaa50612c41f1937c3b (diff) | |
download | monitoring-plugins-f4c6f7f09305c1c9916da6ac4f7aadcb31e319e0.tar.gz |
more POSIX return value comparison related code fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@55 f882894a-f735-0410-b71e-b25c423dba1c
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) /* 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) { |