From: David Soria Parra Date: Sun, 25 Jan 2009 14:04:09 +0000 (+0000) Subject: MFH: Fix compiler warning. munmap expects a void pointer. X-Git-Tag: php-5.2.9RC1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49b4865adb3adae4df63625813690e75ce86941a;p=php MFH: Fix compiler warning. munmap expects a void pointer. --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 1caf7aebd4..bdb6ff80c2 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -164,7 +164,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