You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2011/05/11 15:23:47 UTC
svn commit: r1101868 -
/subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
Author: philip
Date: Wed May 11 13:23:47 2011
New Revision: 1101868
URL: http://svn.apache.org/viewvc?rev=1101868&view=rev
Log:
* subversion/libsvn_subr/cache-membuffer.c
(secure_aligned_alloc, membuffer_cache_get): Remove unneeded casts.
Modified:
subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
Modified: subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache-membuffer.c?rev=1101868&r1=1101867&r2=1101868&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-membuffer.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-membuffer.c Wed May 11 13:23:47 2011
@@ -881,7 +881,7 @@ static void* secure_aligned_alloc(apr_po
void* memory = apr_palloc(pool, size + ITEM_ALIGNMENT);
if (memory != NULL)
{
- memory = (char *)ALIGN_POINTER(memory);
+ memory = ALIGN_POINTER(memory);
if (zero)
memset(memory, 0, size);
}
@@ -1169,7 +1169,7 @@ membuffer_cache_get(svn_membuffer_t *cac
}
size = ALIGN_VALUE(entry->size);
- buffer = (char *)ALIGN_POINTER(apr_palloc(pool, size + ITEM_ALIGNMENT-1));
+ buffer = ALIGN_POINTER(apr_palloc(pool, size + ITEM_ALIGNMENT-1));
memcpy(buffer, (const char*)cache->data + entry->offset, size);
#ifdef DEBUG_CACHE_MEMBUFFER
Re: svn commit: r1101868 - /subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
Posted by Greg Stein <gs...@gmail.com>.
On May 11, 2011 9:24 AM, <ph...@apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_subr/cache-membuffer.c Wed May 11
13:23:47 2011
> @@ -881,7 +881,7 @@ static void* secure_aligned_alloc(apr_po
> void* memory = apr_palloc(pool, size + ITEM_ALIGNMENT);
I know this wasn't part of your change, Philip, but these declarations use
the wrong white space.
GOOD: void *Foo;
BAD: void* Foo;
>...
Cheers
-g