summaryrefslogtreecommitdiffstats
path: root/plugins/check_nagios.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r--plugins/check_nagios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 0425835..ea79d24 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -101,14 +101,14 @@ main (int argc, char **argv)
101 101
102 /* If we get anything on stderr, at least set warning */ 102 /* If we get anything on stderr, at least set warning */
103 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) 103 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr))
104 result = max (result, STATE_WARNING); 104 result = max_state (result, STATE_WARNING);
105 105
106 /* close stderr */ 106 /* close stderr */
107 (void) fclose (child_stderr); 107 (void) fclose (child_stderr);
108 108
109 /* close the pipe */ 109 /* close the pipe */
110 if (spclose (child_process)) 110 if (spclose (child_process))
111 result = max (result, STATE_WARNING); 111 result = max_state (result, STATE_WARNING);
112 112
113 /* reset the alarm handler */ 113 /* reset the alarm handler */
114 alarm (0); 114 alarm (0);