]> 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:04:09 +0000 (14:04 +0000)
committerDavid Soria Parra <dsp@php.net>
Sun, 25 Jan 2009 14:04:09 +0000 (14:04 +0000)
Zend/zend_alloc.c

index 1caf7aebd4770fff0e073a0bf5d17a1ff6c4aa1f..bdb6ff80c29499075b2c8b011329852e29910aa9 100644 (file)
@@ -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