Bug 794510 - Part 8 (second half)
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 18 Oct 2012 15:04:20 -0400
changeset 110827 602330b6745c07cad8cbff140b338b314c05fef6
parent 110826 6a016c00dcc3640d4bd921bcbeaf22c7c7f80ef3
child 110828 81f8d4719fd6f4696c49633cf785aa3403f8cb61
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
bugs794510
milestone19.0a1
Bug 794510 - Part 8 (second half)
layout/base/nsPresArena.cpp
--- a/layout/base/nsPresArena.cpp
+++ b/layout/base/nsPresArena.cpp
@@ -127,29 +127,29 @@ GetDesiredRegionSize()
 
 #define RESERVE_FAILED 0
 
 #else // Unix
 
 static void *
 ReserveRegion(uintptr_t region, uintptr_t size)
 {
-  return mmap((caddr_t)region, size, PROT_NONE, MAP_PRIVATE|MAP_ANON, -1, 0);
+  return mmap(reinterpret_cast<void*>(region), size, PROT_NONE, MAP_PRIVATE|MAP_ANON, -1, 0);
 }
 
 static void
 ReleaseRegion(void *region, uintptr_t size)
 {
-  munmap((caddr_t)region, size);
+  munmap(region, size);
 }
 
 static bool
 ProbeRegion(uintptr_t region, uintptr_t size)
 {
-  if (madvise((caddr_t)region, size, MADV_NORMAL)) {
+  if (madvise(reinterpret_cast<void*>(region), size, MADV_NORMAL)) {
     return true;
   } else {
     return false;
   }
 }
 
 static uintptr_t
 GetDesiredRegionSize()