Author: julianfoad
Date: Thu Apr 12 10:22:45 2012
New Revision: 1325189

URL: http://svn.apache.org/viewvc?rev=1325189&view=rev
Log:
* subversion/libsvn_fs_fs/temp_serializer.c
  (svn_fs_fs__get_sharded_offset, svn_fs_fs__extract_dir_entry): Add 'const'
    to a local pointer, avoid casting away 'const', and in fact remove the
    type cast altogether. Reduces compiler warnings (for me, with GCC).

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/temp_serializer.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/temp_serializer.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/temp_serializer.c?rev=1325189&r1=1325188&r2=1325189&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/temp_serializer.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/temp_serializer.c Thu Apr 12 
10:22:45 2012
@@ -852,7 +852,7 @@ svn_fs_fs__get_sharded_offset(void **out
                               void *baton,
                               apr_pool_t *pool)
 {
-  apr_off_t *manifest = (apr_off_t *)data;
+  const apr_off_t *manifest = data;
   apr_int64_t shard_pos = *(apr_int64_t *)baton;
 
   *(apr_off_t *)out = manifest[shard_pos];
@@ -913,7 +913,7 @@ svn_fs_fs__extract_dir_entry(void **out,
                              void *baton,
                              apr_pool_t *pool)
 {
-  hash_data_t *hash_data = (hash_data_t *)data;
+  const hash_data_t *hash_data = data;
   const char* name = baton;
   svn_boolean_t found;
 


Reply via email to