From f4c6f7f09305c1c9916da6ac4f7aadcb31e319e0 Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Wed, 19 Jun 2002 05:11:52 +0000 Subject: 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 --- plugins/check_dig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_dig.c') diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 57609acd..384b380b 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -98,7 +98,7 @@ main (int argc, char **argv) while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { /* If we get anything on STDERR, at least set warning */ - result = max (result, STATE_WARNING); + result = max_state (result, STATE_WARNING); printf ("%s", input_buffer); if (!strcmp (output, "")) strcpy (output, 1 + index (input_buffer, ':')); @@ -108,7 +108,7 @@ main (int argc, char **argv) /* close the pipe */ if (spclose (child_process)) { - result = max (result, STATE_WARNING); + result = max_state (result, STATE_WARNING); if (!strcmp (output, "")) strcpy (output, "nslookup returned error status"); } -- cgit v1.2.3-74-g34f1