From: <ca...@us...> - 2008-06-22 09:52:02
|
Revision: 1436 http://ganglia.svn.sourceforge.net/ganglia/?rev=1436&view=rev Author: carenas Date: 2008-06-20 14:38:55 -0700 (Fri, 20 Jun 2008) Log Message: ----------- gmetad: keep const qualifier for name/value in EXTRA_ELEMENT processing fixes two warnings introduced with r1355 when the constant strings for name and value are being assigned from the attr array into local variables to be used as part of the processing for EXTRA_ELEMENT and as shown below : process_xml.c: In function 'startElement_EXTRA_ELEMENT': process_xml.c:771: warning: initialization discards qualifiers from pointer target type process_xml.c:772: warning: initialization discards qualifiers from pointer target type Merged from trunk by : svn merge -c1433 trunk Reviewed-by: Brad Nicholes <BNI...@no...> Modified Paths: -------------- branches/monitor-core-3.1/gmetad/process_xml.c Modified: branches/monitor-core-3.1/gmetad/process_xml.c =================================================================== --- branches/monitor-core-3.1/gmetad/process_xml.c 2008-06-20 21:05:34 UTC (rev 1435) +++ branches/monitor-core-3.1/gmetad/process_xml.c 2008-06-20 21:38:55 UTC (rev 1436) @@ -768,8 +768,8 @@ if ((name_off >= 0) && (value_off >= 0)) { - char *new_name = attr[name_off+1]; - char *new_value = attr[value_off+1]; + const char *new_name = attr[name_off+1]; + const char *new_value = attr[value_off+1]; metric.ednames[metric.ednameslen++] = addstring(metric.strings, &edge, new_name); metric.edvalues[metric.edvalueslen++] = addstring(metric.strings, &edge, new_value); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |