[Nagiosplug-checkins] CVS: nagiosplug/plugins check_snmp.c,1.11,1.12

Karl DeBisschop kdebisschop at users.sourceforge.net
Fri Nov 8 20:22:02 CET 2002


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

Modified Files:
	check_snmp.c 
Log Message:
cleaner handling of DEFAULT_PORT

Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** check_snmp.c	9 Nov 2002 03:39:35 -0000	1.11
--- check_snmp.c	9 Nov 2002 04:21:51 -0000	1.12
***************
*** 159,163 ****
  char *label = NULL;
  char *units = NULL;
! char *port = NULL;
  char string_value[MAX_INPUT_BUFFER] = "";
  char **labels = NULL;
--- 159,163 ----
  char *label = NULL;
  char *units = NULL;
! char *port = DEFAULT_PORT;
  char string_value[MAX_INPUT_BUFFER] = "";
  char **labels = NULL;
***************
*** 647,653 ****
  	if (units == NULL)
  		asprintf (&units, "");
- 
- 	if (port == NULL)
- 		asprintf (&port, DEFAULT_PORT);
  
  	return OK;
--- 647,650 ----





More information about the Commits mailing list