subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1337445 - in /subversion/trunk/subversion: include/svn_xml.h libsvn_subr/xml.c
Date Sat, 12 May 2012 05:19:35 GMT
Author: gstein
Date: Sat May 12 05:19:35 2012
New Revision: 1337445

URL: http://svn.apache.org/viewvc?rev=1337445&view=rev
Log:
Add a little more const love.

This is an API-compatible change since we're adding const, rather than
taking it away. Callers can continue to pass 'const char **'.

* subversion/include/svn_xml.h:
  (svn_xml_get_attr_value): add a const to note that we aren't going
    to attempt to change the array of attributes.

* subversion/libsvn_subr/xml.c:
  (svn_xml_get_attr_value): add const

Modified:
    subversion/trunk/subversion/include/svn_xml.h
    subversion/trunk/subversion/libsvn_subr/xml.c

Modified: subversion/trunk/subversion/include/svn_xml.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_xml.h?rev=1337445&r1=1337444&r2=1337445&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_xml.h (original)
+++ subversion/trunk/subversion/include/svn_xml.h Sat May 12 05:19:35 2012
@@ -228,7 +228,7 @@ svn_xml_signal_bailout(svn_error_t *erro
  */
 const char *
 svn_xml_get_attr_value(const char *name,
-                       const char **atts);
+                       const char *const *atts);
 
 
 

Modified: subversion/trunk/subversion/libsvn_subr/xml.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/xml.c?rev=1337445&r1=1337444&r2=1337445&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/xml.c (original)
+++ subversion/trunk/subversion/libsvn_subr/xml.c Sat May 12 05:19:35 2012
@@ -455,7 +455,7 @@ void svn_xml_signal_bailout(svn_error_t 
 /*** Attribute walking. ***/
 
 const char *
-svn_xml_get_attr_value(const char *name, const char **atts)
+svn_xml_get_attr_value(const char *name, const char *const *atts)
 {
   while (atts && (*atts))
     {



Mime
View raw message