summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b8ebd8)
raw | patch | inline | side by side (parent: 4b8ebd8)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 8 Nov 2002 07:18:49 +0000 (07:18 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 8 Nov 2002 07:18:49 +0000 (07:18 +0000) |
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 44b55a77c2eb65ba7b7cc89820dcf36f2b8665f3..594a368cd57ac273c54914ec7364b89802a80150 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
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 3c0ecad80b51506b1fa1acf0438dce68d4a28bd0..5caffbe879d87740322164a9b4ab80668efa2ef1 100644 (file)
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
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 56c9557bfdc0f3bfea4b358bb4ea808f24c29f08..7ff7f28467be600d3aae7091bcf76052834c5f9a 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
int
process_arguments (int argc, char **argv)
{
- int c, i = 1;
+ int c = 1;
#ifdef HAVE_GETOPT_H
int option_index = 0;
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 0b0a3c138f674d999b4e8774899e926a3fffd712..27cd2daee7f17b8be3330952b05896935672242b 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
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 5afb694123fa2645c932f97e1e9f8c4fd3a8512e..6f174299aa02daba82ebd822a5c3a878af35ee1c 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
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 e3fac22e103a49daa48ba0212529e6d8d9281b62..228a5335b0816c6bf6d7c6462de7b4b114bc84d0 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
int i;
char buffer[MAX_INPUT_BUFFER] = "";
char *status = "";
- char *output = NULL;
- char *ptr = NULL;
struct timeval tv;
if (strstr (argv[0], "check_udp")) {