subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1616638 - /subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
Date Thu, 07 Aug 2014 23:47:56 GMT
Author: breser
Date: Thu Aug  7 23:47:55 2014
New Revision: 1616638

URL: http://svn.apache.org/r1616638
Log:
Avoid a gcc warning about shadowing a global variable.

* subversion/libsvn_subr/x509parse.c
  (latin1_to_utf8): Change index variable name to i.

Modified:
    subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c

Modified: subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
URL: http://svn.apache.org/viewvc/subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c?rev=1616638&r1=1616637&r2=1616638&view=diff
==============================================================================
--- subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c (original)
+++ subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c Thu Aug  7 23:47:55
2014
@@ -757,12 +757,12 @@ latin1_to_utf8(const svn_string_t **resu
   apr_int32_t *ucs4buf;
   svn_membuf_t resultbuf;
   apr_size_t length;
-  apr_size_t index;
+  apr_size_t i;
   svn_string_t *res;
 
   ucs4buf = apr_palloc(result_pool, src->len * sizeof(*ucs4buf));
-  for (index = 0; index < src->len; ++index)
-    ucs4buf[index] = (unsigned char)(src->data[index]);
+  for (i = 0; i < src->len; ++i)
+    ucs4buf[i] = (unsigned char)(src->data[i]);
 
   svn_membuf__create(&resultbuf, 2 * src->len, result_pool);
   SVN_ERR(svn_utf__encode_ucs4_string(



Mime
View raw message