[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
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug configure.in,1.22,1.23
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_by_ssh.c,1.4,1.5 check_dig.c,1.2,1.3 check_ping.c,1.8,1.9 check_time.c,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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 ----
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug configure.in,1.22,1.23
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_by_ssh.c,1.4,1.5 check_dig.c,1.2,1.3 check_ping.c,1.8,1.9 check_time.c,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list