[Nagios-checkins] nagios/xdata xodtemplate.c,1.196,1.197
Nagios network monitoring software is enterprise server monitoring
Brought to you by:
egalstad,
sawolf-nagios
From: Andreas E. <ag...@us...> - 2010-10-23 10:00:44
|
Update of /cvsroot/nagios/nagios/xdata In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv32089/xdata Modified Files: xodtemplate.c Log Message: xdata/xodtemplate.c: Remove ancient and unused timeperiod code The code we're now killing forever was commented out in 2007. I doubt we'll ever want to see it again. Signed-off-by: Andreas Ericsson <ae...@op...> Author: Andreas Ericsson <ae...@op...> Index: xodtemplate.c =================================================================== RCS file: /cvsroot/nagios/nagios/xdata/xodtemplate.c,v retrieving revision 1.196 retrieving revision 1.197 diff -C2 -d -r1.196 -r1.197 *** xodtemplate.c 23 Oct 2010 10:00:24 -0000 1.196 --- xodtemplate.c 23 Oct 2010 10:00:36 -0000 1.197 *************** *** 1296,1319 **** result=ERROR; } - /* - else if(!strcmp(variable,"monday") || !strcmp(variable,"tuesday") || !strcmp(variable,"wednesday") || !strcmp(variable,"thursday") || !strcmp(variable,"friday") || !strcmp(variable,"saturday") || !strcmp(variable,"sunday")){ - if(!strcmp(variable,"monday")) - x=1; - else if(!strcmp(variable,"tuesday")) - x=2; - else if(!strcmp(variable,"wednesday")) - x=3; - else if(!strcmp(variable,"thursday")) - x=4; - else if(!strcmp(variable,"friday")) - x=5; - else if(!strcmp(variable,"saturday")) - x=6; - else - x=0; - if((temp_timeperiod->timeranges[x]=(char *)strdup(value))==NULL) - result=ERROR; - } - */ else if(!strcmp(variable,"exclude")){ if((temp_timeperiod->exclusions=(char *)strdup(value))==NULL) --- 1296,1299 ---- |