cvs: ZendEngine2 / zend_alloc.c
[email protected] ("David Soria Parra") Sun, 25 Jan 2009 14:01:02 -0000
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvsdsp1232892062@cvsserver> |
dsp Sun Jan 25 14:01:02 2009 UTC
Modified files:
/ZendEngine2 zend_alloc.c
Log:
Fix compiler warning. munmap expects a void pointer.
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.221&r2=1.222&diff_format=u
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.221 ZendEngine2/zend_alloc.c:1.222
--- ZendEngine2/zend_alloc.c:1.221 Sun Jan 25 13:39:16 2009
+++ ZendEngine2/zend_alloc.c Sun Jan 25 14:01:01 2009
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.c,v 1.221 2009/01/25 13:39:16 dsp Exp $ */
+/* $Id: zend_alloc.c,v 1.222 2009/01/25 14:01:01 dsp Exp $ */
#include "zend.h"
#include "zend_alloc.h"
@@ -168,7 +168,7 @@
static void zend_mm_mem_mmap_free(zend_mm_storage *storage, zend_mm_segment* segment) /* {{{ */
{
- munmap(segment, segment->size);
+ munmap((void*)segment, segment->size);
}
/* }}} */