[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.9,1.10 check_load.c,1.3,1.4 check_ping.c,1.6,1.7 check_procs.c,1.3,1.4 check_smtp.c,1.7,1.8 check_tcp.c,1.6,1.7

Karl DeBisschop kdebisschop at users.sourceforge.net
Thu Nov 7 23:19:03 CET 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv12075/plugins

Modified Files:
	check_http.c check_load.c check_ping.c check_procs.c 
	check_smtp.c check_tcp.c 
Log Message:
remove unused variables

Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** check_http.c	18 Oct 2002 03:46:10 -0000	1.9
--- check_http.c	8 Nov 2002 07:18:49 -0000	1.10
***************
*** 270,275 ****
  process_arguments (int argc, char **argv)
  {
! 	int c, i = 1;
! 	char optchars[MAX_INPUT_BUFFER];
  
  #ifdef HAVE_GETOPT_H
--- 270,274 ----
  process_arguments (int argc, char **argv)
  {
! 	int c = 1;
  
  #ifdef HAVE_GETOPT_H

Index: check_load.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_load.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** check_load.c	21 Oct 2002 03:55:37 -0000	1.3
--- check_load.c	8 Nov 2002 07:18:49 -0000	1.4
***************
*** 152,156 ****
  process_arguments (int argc, char **argv)
  {
! 	int c, i = 0;
  
  #ifdef HAVE_GETOPT_H
--- 152,156 ----
  process_arguments (int argc, char **argv)
  {
! 	int c = 0;
  
  #ifdef HAVE_GETOPT_H

Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** check_ping.c	18 Oct 2002 03:45:02 -0000	1.6
--- check_ping.c	8 Nov 2002 07:18:49 -0000	1.7
***************
*** 152,156 ****
  process_arguments (int argc, char **argv)
  {
! 	int c, i = 1;
  
  #ifdef HAVE_GETOPT_H
--- 152,156 ----
  process_arguments (int argc, char **argv)
  {
! 	int c = 1;
  
  #ifdef HAVE_GETOPT_H
***************
*** 456,468 ****
  			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( !(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 ;
  	}
--- 456,465 ----
  			sprintf (warn_text, "%s %s", warn_text, input_buffer);
  
! 		if (strstr (input_buffer, "DUPLICATES FOUND")) {
  			if( !(result == STATE_CRITICAL) ){
  				result = STATE_WARNING;
  			}
+ 		}
  		else
  			result = STATE_CRITICAL ;
  	}

Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** check_procs.c	22 Oct 2002 08:19:05 -0000	1.3
--- check_procs.c	8 Nov 2002 07:18:49 -0000	1.4
***************
*** 258,262 ****
  process_arguments (int argc, char **argv)
  {
! 	int c, i = 1;
  	char *user;
  	struct passwd *pw;
--- 258,262 ----
  process_arguments (int argc, char **argv)
  {
! 	int c = 1;
  	char *user;
  	struct passwd *pw;

Index: check_smtp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_smtp.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** check_smtp.c	30 Oct 2002 18:29:07 -0000	1.7
--- check_smtp.c	8 Nov 2002 07:18:49 -0000	1.8
***************
*** 79,83 ****
  main (int argc, char **argv)
  {
! 	int sd, c;
  	int result;
  	char buffer[MAX_INPUT_BUFFER] = "";
--- 79,83 ----
  main (int argc, char **argv)
  {
! 	int sd;
  	int result;
  	char buffer[MAX_INPUT_BUFFER] = "";

Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** check_tcp.c	30 Oct 2002 18:47:48 -0000	1.6
--- check_tcp.c	8 Nov 2002 07:18:49 -0000	1.7
***************
*** 101,106 ****
  	char buffer[MAX_INPUT_BUFFER] = "";
  	char *status = "";
- 	char *output = NULL;
- 	char *ptr = NULL;
  	struct timeval tv;
  
--- 101,104 ----





More information about the Commits mailing list