diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-08 07:18:49 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-08 07:18:49 (GMT) |
commit | 34ba941736b434a6c1453feec35d04ed7b0a59e5 (patch) | |
tree | 63468d113fc12f3996012bed785d7e6ad6646b28 /plugins | |
parent | 4b8ebd84084b89dfd2763a29936482099142d04c (diff) | |
download | monitoring-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')
-rw-r--r-- | plugins/check_http.c | 3 | ||||
-rw-r--r-- | plugins/check_load.c | 2 | ||||
-rw-r--r-- | plugins/check_ping.c | 9 | ||||
-rw-r--r-- | plugins/check_procs.c | 2 | ||||
-rw-r--r-- | plugins/check_smtp.c | 2 | ||||
-rw-r--r-- | plugins/check_tcp.c | 2 |
6 files changed, 7 insertions, 13 deletions
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) | |||
269 | int | 269 | int |
270 | process_arguments (int argc, char **argv) | 270 | process_arguments (int argc, char **argv) |
271 | { | 271 | { |
272 | int c, i = 1; | 272 | int c = 1; |
273 | char optchars[MAX_INPUT_BUFFER]; | ||
274 | 273 | ||
275 | #ifdef HAVE_GETOPT_H | 274 | #ifdef HAVE_GETOPT_H |
276 | int option_index = 0; | 275 | 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) | |||
151 | int | 151 | int |
152 | process_arguments (int argc, char **argv) | 152 | process_arguments (int argc, char **argv) |
153 | { | 153 | { |
154 | int c, i = 0; | 154 | int c = 0; |
155 | 155 | ||
156 | #ifdef HAVE_GETOPT_H | 156 | #ifdef HAVE_GETOPT_H |
157 | int option_index = 0; | 157 | 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) | |||
151 | int | 151 | int |
152 | process_arguments (int argc, char **argv) | 152 | process_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); |
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) | |||
257 | int | 257 | int |
258 | process_arguments (int argc, char **argv) | 258 | process_arguments (int argc, char **argv) |
259 | { | 259 | { |
260 | int c, i = 1; | 260 | int c = 1; |
261 | char *user; | 261 | char *user; |
262 | struct passwd *pw; | 262 | struct passwd *pw; |
263 | #ifdef HAVE_GETOPT_H | 263 | #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; | |||
78 | int | 78 | int |
79 | main (int argc, char **argv) | 79 | main (int argc, char **argv) |
80 | { | 80 | { |
81 | int sd, c; | 81 | int sd; |
82 | int result; | 82 | int result; |
83 | char buffer[MAX_INPUT_BUFFER] = ""; | 83 | char buffer[MAX_INPUT_BUFFER] = ""; |
84 | char *from_str = NULL; | 84 | 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) | |||
100 | int i; | 100 | int i; |
101 | char buffer[MAX_INPUT_BUFFER] = ""; | 101 | char buffer[MAX_INPUT_BUFFER] = ""; |
102 | char *status = ""; | 102 | char *status = ""; |
103 | char *output = NULL; | ||
104 | char *ptr = NULL; | ||
105 | struct timeval tv; | 103 | struct timeval tv; |
106 | 104 | ||
107 | if (strstr (argv[0], "check_udp")) { | 105 | if (strstr (argv[0], "check_udp")) { |