X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fruntime%2Fstorage%2Fmprotect.lc;h=1cef887330d5242dd3999b749d8b27f8102f06c5;hb=967cc47f37cb93a5e2b6df7822c9a646f0428247;hp=b9b14f5fb674d5caab7a3357190ee1a182ad4986;hpb=e510674aeef05e37b13b6ebb8af7a98a0bb16211;p=ghc-hetmet.git diff --git a/ghc/runtime/storage/mprotect.lc b/ghc/runtime/storage/mprotect.lc index b9b14f5..1cef887 100644 --- a/ghc/runtime/storage/mprotect.lc +++ b/ghc/runtime/storage/mprotect.lc @@ -65,13 +65,12 @@ int mprotect PROTO((caddr_t, size_t, int)); #endif void -unmapMiddleStackPage(addr_, size) -char * /*caddr_t*/ addr_; +unmapMiddleStackPage(addr, size) +char * /*caddr_t*/ addr; int size; { int pagesize = GETPAGESIZE(); - caddr_t addr = addr_; - caddr_t middle = (caddr_t) (((W_) (addr + size / 2)) / pagesize * pagesize); + char * middle = (char *) (((W_) (addr + size / 2)) / pagesize * pagesize); #if defined(cygwin32_TARGET_OS) unsigned int old_prot; #endif