subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r906040 - in /subversion/trunk/subversion: include/private/svn_diff_private.h libsvn_diff/parse-diff.c
Date Wed, 03 Feb 2010 13:40:44 GMT
Author: stsp
Date: Wed Feb  3 13:40:43 2010
New Revision: 906040

URL: http://svn.apache.org/viewvc?rev=906040&view=rev
Log:
* subversion/include/private/svn_diff_private.h,
  subversion/libsvn_diff/parse-diff.c:
  (svn_diff__close_patch, close_hunk): Constify parameters.

Modified:
    subversion/trunk/subversion/include/private/svn_diff_private.h
    subversion/trunk/subversion/libsvn_diff/parse-diff.c

Modified: subversion/trunk/subversion/include/private/svn_diff_private.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/private/svn_diff_private.h?rev=906040&r1=906039&r2=906040&view=diff
==============================================================================
--- subversion/trunk/subversion/include/private/svn_diff_private.h (original)
+++ subversion/trunk/subversion/include/private/svn_diff_private.h Wed Feb  3 13:40:43 2010
@@ -120,7 +120,7 @@
 
 /* Dispose of PATCH, closing any streams used by it. */
 svn_error_t *
-svn_diff__close_patch(svn_patch_t *patch);
+svn_diff__close_patch(const svn_patch_t *patch);
 
 #ifdef __cplusplus
 }

Modified: subversion/trunk/subversion/libsvn_diff/parse-diff.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/parse-diff.c?rev=906040&r1=906039&r2=906040&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/parse-diff.c (original)
+++ subversion/trunk/subversion/libsvn_diff/parse-diff.c Wed Feb  3 13:40:43 2010
@@ -406,7 +406,7 @@
  * Ensure that all streams which were opened for HUNK are closed.
  */
 static svn_error_t *
-close_hunk(svn_hunk_t *hunk)
+close_hunk(const svn_hunk_t *hunk)
 {
   SVN_ERR(svn_stream_close(hunk->original_text));
   SVN_ERR(svn_stream_close(hunk->modified_text));
@@ -542,13 +542,13 @@
 }
 
 svn_error_t *
-svn_diff__close_patch(svn_patch_t *patch)
+svn_diff__close_patch(const svn_patch_t *patch)
 {
   int i;
 
   for (i = 0; i < patch->hunks->nelts; i++)
     {
-      svn_hunk_t *hunk = APR_ARRAY_IDX(patch->hunks, i, svn_hunk_t *);
+      const svn_hunk_t *hunk = APR_ARRAY_IDX(patch->hunks, i, svn_hunk_t *);
       SVN_ERR(close_hunk(hunk));
     }
 



Mime
View raw message