[Nagiosplug-checkins] CVS: nagiosplug/plugins utils.c,1.33,1.34

Karl DeBisschop kdebisschop at users.sourceforge.net
Wed Aug 27 20:23:17 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv9489

Modified Files:
	utils.c 
Log Message:
suppress quotes in perf data when not needed (some plugins need the space to keep below line length limit

Index: utils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/utils.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** utils.c	26 Aug 2003 10:44:14 -0000	1.33
--- utils.c	28 Aug 2003 03:21:32 -0000	1.34
***************
*** 522,526 ****
  	char *data = NULL;
  
! 	asprintf (&data, "\"%s\"=%ld%s;", label, val, uom);
  
  	if (warnp)
--- 522,529 ----
  	char *data = NULL;
  
! 	if (index (label, '"'))
! 		asprintf (&data, "\"%s\"=%ld%s;", label, val, uom);
! 	else
! 		asprintf (&data, "%s=%ld%s;", label, val, uom);
  
  	if (warnp)





More information about the Commits mailing list