subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1403345 - /subversion/trunk/subversion/libsvn_wc/context.c
Date Mon, 29 Oct 2012 15:01:08 GMT
Author: stefan2
Date: Mon Oct 29 15:01:07 2012
New Revision: 1403345

URL: http://svn.apache.org/viewvc?rev=1403345&view=rev
Log:
* subversion/libsvn_wc/context.c
  (svn_wc_context_create): silence a const-cast warning

Modified:
    subversion/trunk/subversion/libsvn_wc/context.c

Modified: subversion/trunk/subversion/libsvn_wc/context.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/context.c?rev=1403345&r1=1403344&r2=1403345&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/context.c (original)
+++ subversion/trunk/subversion/libsvn_wc/context.c Mon Oct 29 15:01:07 2012
@@ -65,9 +65,11 @@ svn_wc_context_create(svn_wc_context_t *
 {
   svn_wc_context_t *ctx = apr_pcalloc(result_pool, sizeof(*ctx));
 
-  /* Create the state_pool, and open up a wc_db in it. */
+  /* Create the state_pool, and open up a wc_db in it.
+   * Since config contains a private mutable member but C doesn't support
+   * we need to make it writable */
   ctx->state_pool = result_pool;
-  SVN_ERR(svn_wc__db_open(&ctx->db, config,
+  SVN_ERR(svn_wc__db_open(&ctx->db, (svn_config_t *)config,
                           TRUE, TRUE, ctx->state_pool, scratch_pool));
   ctx->close_db_on_destroy = TRUE;
 



Mime
View raw message