aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--plugins/check_http.c3
-rw-r--r--plugins/check_load.c2
-rw-r--r--plugins/check_ping.c9
-rw-r--r--plugins/check_procs.c2
-rw-r--r--plugins/check_smtp.c2
-rw-r--r--plugins/check_tcp.c2
6 files changed, 7 insertions, 13 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 44b55a77..594a368c 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -269,8 +269,7 @@ main (int argc, char **argv)
int
process_arguments (int argc, char **argv)
{
- int c, i = 1;
- char optchars[MAX_INPUT_BUFFER];
+ int c = 1;
#ifdef HAVE_GETOPT_H
int option_index = 0;
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 3c0ecad8..5caffbe8 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -151,7 +151,7 @@ main (int argc, char **argv)
int
process_arguments (int argc, char **argv)
{
- int c, i = 0;
+ int c = 0;
#ifdef HAVE_GETOPT_H
int option_index = 0;
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);
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 0b0a3c13..27cd2dae 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -257,7 +257,7 @@ main (int argc, char **argv)
int
process_arguments (int argc, char **argv)
{
- int c, i = 1;
+ int c = 1;
char *user;
struct passwd *pw;
#ifdef HAVE_GETOPT_H
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 5afb6941..6f174299 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -78,7 +78,7 @@ int verbose = FALSE;
int
main (int argc, char **argv)
{
- int sd, c;
+ int sd;
int result;
char buffer[MAX_INPUT_BUFFER] = "";
char *from_str = NULL;
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index e3fac22e..228a5335 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -100,8 +100,6 @@ main (int argc, char **argv)
int i;
char buffer[MAX_INPUT_BUFFER] = "";
char *status = "";
- char *output = NULL;
- char *ptr = NULL;
struct timeval tv;
if (strstr (argv[0], "check_udp")) {