]> granicus.if.org Git - php/commitdiff
MFH: Fix compiler warning. munmap expects a void pointer.
authorDavid Soria Parra <dsp@php.net>
Sun, 25 Jan 2009 14:03:09 +0000 (14:03 +0000)
committerDavid Soria Parra <dsp@php.net>
Sun, 25 Jan 2009 14:03:09 +0000 (14:03 +0000)
Zend/zend_alloc.c

index 7e4e36a370d6a612a7eb39407da3b40b1f4e456f..c9ecc7411101fa7380c1204f0c4e9d468b21b1d6 100644 (file)
@@ -162,7 +162,7 @@ static zend_mm_segment* zend_mm_mem_mmap_realloc(zend_mm_storage *storage, zend_
 
 static void zend_mm_mem_mmap_free(zend_mm_storage *storage, zend_mm_segment* segment)
 {
-       munmap(segment, segment->size);
+       munmap((void*)segment, segment->size);
 }
 
 #endif