cvs: pecl /apc apc_sma.c

From: Date: Tue, 15 Jan 2008 02:38:09 +0000
Subject: cvs: pecl /apc apc_sma.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-9519@lists.php.net to get a copy of this message
shire Tue Jan 15 02:38:09 2008 UTC Modified files: /pecl/apc apc_sma.c Log: correct size types, fixes corruption when using > 2GB of the cache. http://cvs.php.net/viewvc.cgi/pecl/apc/apc_sma.c?r1=1.71&r2=1.72&diff_format=u Index: pecl/apc/apc_sma.c diff -u pecl/apc/apc_sma.c:1.71 pecl/apc/apc_sma.c:1.72 --- pecl/apc/apc_sma.c:1.71 Wed Jan 9 13:52:37 2008 +++ pecl/apc/apc_sma.c Tue Jan 15 02:38:09 2008 @@ -26,7 +26,7 @@ */ -/* $Id: apc_sma.c,v 1.71 2008/01/09 13:52:37 gopalv Exp $ */ +/* $Id: apc_sma.c,v 1.72 2008/01/15 02:38:09 shire Exp $ */ #include "apc_sma.h" #include "apc.h" @@ -124,7 +124,7 @@ /* }}} */ /* {{{ sma_allocate: tries to allocate size bytes in a segment */ -static int sma_allocate(void* shmaddr, size_t size) +static size_t sma_allocate(void* shmaddr, size_t size) { header_t* header; /* header of shared memory segment */ block_t* prv; /* block prior to working block */ @@ -241,7 +241,7 @@ /* }}} */ /* {{{ sma_deallocate: deallocates the block at the given offset */ -static int sma_deallocate(void* shmaddr, int offset) +static size_t sma_deallocate(void* shmaddr, size_t offset) { header_t* header; /* header of shared memory segment */ block_t* cur; /* the new block to insert */ @@ -411,7 +411,7 @@ /* {{{ apc_sma_malloc */ void* apc_sma_malloc(size_t n) { - int off; + size_t off; int i; TSRMLS_FETCH();

« previous php.pecl.cvs (#9519) next »