subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1166481 - in /subversion/trunk/subversion: include/svn_delta.h libsvn_delta/compat.c tests/libsvn_delta/editor-test.c
Date Thu, 08 Sep 2011 00:49:21 GMT
Author: hwright
Date: Thu Sep  8 00:49:21 2011
New Revision: 1166481

URL: http://svn.apache.org/viewvc?rev=1166481&view=rev
Log:
Respond to some feedback on r1165787.

* subversion/include/svn_delta.h,
  subversion/libsvn_delta/compat.c
  (svn_delta_from_editor): Const-ify a parameter.

* subversion/tests/libsvn_delta/editor-test.c
  (get_noop_editor): 'static const' a variable.

Modified:
    subversion/trunk/subversion/include/svn_delta.h
    subversion/trunk/subversion/libsvn_delta/compat.c
    subversion/trunk/subversion/tests/libsvn_delta/editor-test.c

Modified: subversion/trunk/subversion/include/svn_delta.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_delta.h?rev=1166481&r1=1166480&r2=1166481&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_delta.h (original)
+++ subversion/trunk/subversion/include/svn_delta.h Thu Sep  8 00:49:21 2011
@@ -1097,7 +1097,7 @@ svn_delta_default_editor(apr_pool_t *poo
  * @since New in 1.8.
  */
 svn_error_t *
-svn_delta_from_editor(svn_delta_editor_t **deditor,
+svn_delta_from_editor(const svn_delta_editor_t **deditor,
                       void **dedit_baton,
                       svn_editor_t *editor,
                       apr_pool_t *pool);

Modified: subversion/trunk/subversion/libsvn_delta/compat.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/compat.c?rev=1166481&r1=1166480&r2=1166481&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/compat.c (original)
+++ subversion/trunk/subversion/libsvn_delta/compat.c Thu Sep  8 00:49:21 2011
@@ -413,7 +413,7 @@ ev2_abort_edit(void *edit_baton,
 }
 
 svn_error_t *
-svn_delta_from_editor(svn_delta_editor_t **deditor,
+svn_delta_from_editor(const svn_delta_editor_t **deditor,
                       void **dedit_baton,
                       svn_editor_t *editor,
                       apr_pool_t *pool)

Modified: subversion/trunk/subversion/tests/libsvn_delta/editor-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_delta/editor-test.c?rev=1166481&r1=1166480&r2=1166481&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_delta/editor-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_delta/editor-test.c Thu Sep  8 00:49:21 2011
@@ -175,7 +175,7 @@ get_noop_editor(svn_editor_t **editor,
                 apr_pool_t *result_pool,
                 apr_pool_t *scratch_pool)
 {
-  svn_editor_cb_many_t editor_cbs = {
+  static const svn_editor_cb_many_t editor_cbs = {
       add_directory_noop_cb,
       add_file_noop_cb,
       add_symlink_noop_cb,



Mime
View raw message