Author: gstein
Date: Thu Jul 14 04:57:21 2011
New Revision: 1146555
URL: http://svn.apache.org/viewvc?rev=1146555&view=rev
Log:
Fix a warning about a loss of const-qualifiers, due to change in r1146492.
Found by: danielsh
* subversion/libsvn_client/deprecated.c:
(info_from_info2): add a cast and a comment
Modified:
subversion/trunk/subversion/libsvn_client/deprecated.c
Modified: subversion/trunk/subversion/libsvn_client/deprecated.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/deprecated.c?rev=1146555&r1=1146554&r2=1146555&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/deprecated.c (original)
+++ subversion/trunk/subversion/libsvn_client/deprecated.c Thu Jul 14 04:57:21
2011
@@ -2177,7 +2177,9 @@ info_from_info2(svn_info_t **new_info,
info->last_changed_rev = info2->last_changed_rev;
info->last_changed_date = info2->last_changed_date;
info->last_changed_author = info2->last_changed_author;
- info->lock = info2->lock;
+
+ /* Stupid old structure has a non-const LOCK member. Sigh. */
+ info->lock = (svn_lock_t *)info2->lock;
info->size64 = info2->size;
if (info2->size == SVN_INVALID_FILESIZE)