You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2018/01/22 13:04:31 UTC

svn commit: r1821860 - in /subversion/trunk/subversion: include/svn_client.h libsvn_client/shelf.c svn/shelf-cmd.c

Author: julianfoad
Date: Mon Jan 22 13:04:31 2018
New Revision: 1821860

URL: http://svn.apache.org/viewvc?rev=1821860&view=rev
Log:
Don't cast away 'const'.

Found by: warnings buildbots.

* subversion/include/svn_client.h,
  subversion/libsvn_client/shelf.c
  (svn_client_shelf_get_patch_abspath): Let the output be const.

* subversion/svn/shelf-cmd.c
  (show_diffstat): Update caller.

Modified:
    subversion/trunk/subversion/include/svn_client.h
    subversion/trunk/subversion/libsvn_client/shelf.c
    subversion/trunk/subversion/svn/shelf-cmd.c

Modified: subversion/trunk/subversion/include/svn_client.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_client.h?rev=1821860&r1=1821859&r2=1821860&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_client.h (original)
+++ subversion/trunk/subversion/include/svn_client.h Mon Jan 22 13:04:31 2018
@@ -6869,7 +6869,7 @@ svn_client_shelf_unapply(svn_client_shel
  */
 SVN_EXPERIMENTAL
 svn_error_t *
-svn_client_shelf_get_patch_abspath(char **patch_abspath,
+svn_client_shelf_get_patch_abspath(const char **patch_abspath,
                                    svn_client_shelf_version_t *shelf_version,
                                    apr_pool_t *scratch_pool);
 

Modified: subversion/trunk/subversion/libsvn_client/shelf.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/shelf.c?rev=1821860&r1=1821859&r2=1821860&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/shelf.c (original)
+++ subversion/trunk/subversion/libsvn_client/shelf.c Mon Jan 22 13:04:31 2018
@@ -541,7 +541,7 @@ svn_client_shelf_set_current_version(svn
 }
 
 svn_error_t *
-svn_client_shelf_get_patch_abspath(char **patch_abspath,
+svn_client_shelf_get_patch_abspath(const char **patch_abspath,
                                    svn_client_shelf_version_t *shelf_version,
                                    apr_pool_t *scratch_pool)
 {

Modified: subversion/trunk/subversion/svn/shelf-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/shelf-cmd.c?rev=1821860&r1=1821859&r2=1821860&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/shelf-cmd.c (original)
+++ subversion/trunk/subversion/svn/shelf-cmd.c Mon Jan 22 13:04:31 2018
@@ -78,7 +78,7 @@ show_diffstat(svn_client_shelf_version_t
               apr_pool_t *scratch_pool)
 {
 #ifndef WIN32
-  char *patch_abspath;
+  const char *patch_abspath;
   int result;
 
   SVN_ERR(svn_client_shelf_get_patch_abspath(&patch_abspath, shelf_version,