From 34ba941736b434a6c1453feec35d04ed7b0a59e5 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 8 Nov 2002 07:18:49 +0000 Subject: remove unused variables git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@173 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_http.c b/plugins/check_http.c index 44b55a7..594a368 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 3c0ecad..5caffbe 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 56c9557..7ff7f28 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 0b0a3c1..27cd2da 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 5afb694..6f17429 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 e3fac22..228a533 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")) { -- cgit v0.10-9-g596f