summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 13e12ff..eae52ca 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -261,7 +261,7 @@ main (int argc, char **argv)
261 iresult = STATE_WARNING; 261 iresult = STATE_WARNING;
262 } 262 }
263 263
264 result = max (result, iresult); 264 result = max_state (result, iresult);
265 265
266 if (nlabels > 1 && i < nlabels && labels[i] != NULL) 266 if (nlabels > 1 && i < nlabels && labels[i] != NULL)
267 outbuff = ssprintf 267 outbuff = ssprintf
@@ -292,14 +292,14 @@ main (int argc, char **argv)
292 292
293 /* WARNING if output found on stderr */ 293 /* WARNING if output found on stderr */
294 if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) 294 if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr))
295 result = max (result, STATE_WARNING); 295 result = max_state (result, STATE_WARNING);
296 296
297 /* close stderr */ 297 /* close stderr */
298 (void) fclose (child_stderr); 298 (void) fclose (child_stderr);
299 299
300 /* close the pipe */ 300 /* close the pipe */
301 if (spclose (child_process)) 301 if (spclose (child_process))
302 result = max (result, STATE_WARNING); 302 result = max_state (result, STATE_WARNING);
303 303
304 if (nunits > 0) 304 if (nunits > 0)
305 printf ("%s %s -%s\n", label, state_text (result), outbuff); 305 printf ("%s %s -%s\n", label, state_text (result), outbuff);