The following proposed patch for stable 3.1, fixes two warnings introduced with
r1355 when the constant strings for name and value are being assigned from the
attr array to be used as part of the processing for EXTRA_ELEMENT.

  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

Contains changes from r1433

Carlo

---
Index: gmetad/process_xml.c
===================================================================
--- gmetad/process_xml.c        (revision 1433)
+++ gmetad/process_xml.c        (working copy)
@@ -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);
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to