summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-08 07:18:49 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-08 07:18:49 (GMT)
commit34ba941736b434a6c1453feec35d04ed7b0a59e5 (patch)
tree63468d113fc12f3996012bed785d7e6ad6646b28 /plugins/check_ping.c
parent4b8ebd84084b89dfd2763a29936482099142d04c (diff)
downloadmonitoring-plugins-34ba941736b434a6c1453feec35d04ed7b0a59e5.tar.gz
remove unused variables
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@173 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 56c9557..7ff7f28 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -151,7 +151,7 @@ main (int argc, char **argv)
151int 151int
152process_arguments (int argc, char **argv) 152process_arguments (int argc, char **argv)
153{ 153{
154 int c, i = 1; 154 int c = 1;
155 155
156#ifdef HAVE_GETOPT_H 156#ifdef HAVE_GETOPT_H
157 int option_index = 0; 157 int option_index = 0;
@@ -455,15 +455,12 @@ run_ping (char *command_line)
455 else 455 else
456 sprintf (warn_text, "%s %s", warn_text, input_buffer); 456 sprintf (warn_text, "%s %s", warn_text, input_buffer);
457 457
458 if (strstr (input_buffer, "DUPLICATES FOUND")) 458 if (strstr (input_buffer, "DUPLICATES FOUND")) {
459 /* cannot use the max function since STATE_UNKNOWN is max
460 result = max (result, STATE_WARNING); */
461 if( !(result == STATE_CRITICAL) ){ 459 if( !(result == STATE_CRITICAL) ){
462 result = STATE_WARNING; 460 result = STATE_WARNING;
463 } 461 }
462 }
464 else 463 else
465 /* cannot use the max function since STATE_UNKNOWN is max
466 result = max (result, STATE_CRITICAL); */
467 result = STATE_CRITICAL ; 464 result = STATE_CRITICAL ;
468 } 465 }
469 (void) fclose (child_stderr); 466 (void) fclose (child_stderr);