aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-08 07:18:49 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-08 07:18:49 +0000
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 56c9557b..7ff7f284 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -151,7 +151,7 @@ main (int argc, char **argv)
int
process_arguments (int argc, char **argv)
{
- int c, i = 1;
+ int c = 1;
#ifdef HAVE_GETOPT_H
int option_index = 0;
@@ -455,15 +455,12 @@ run_ping (char *command_line)
else
sprintf (warn_text, "%s %s", warn_text, input_buffer);
- if (strstr (input_buffer, "DUPLICATES FOUND"))
- /* cannot use the max function since STATE_UNKNOWN is max
- result = max (result, STATE_WARNING); */
+ if (strstr (input_buffer, "DUPLICATES FOUND")) {
if( !(result == STATE_CRITICAL) ){
result = STATE_WARNING;
}
+ }
else
- /* cannot use the max function since STATE_UNKNOWN is max
- result = max (result, STATE_CRITICAL); */
result = STATE_CRITICAL ;
}
(void) fclose (child_stderr);