Skip to content
Snippets Groups Projects
Commit a6790efe authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-05-21 09:29:13 by simonm]

Don't use caddr_t in a file that claims to be POSIX compatible.
parent 5c23b659
No related branches found
No related tags found
No related merge requests found
...@@ -65,13 +65,12 @@ int mprotect PROTO((caddr_t, size_t, int)); ...@@ -65,13 +65,12 @@ int mprotect PROTO((caddr_t, size_t, int));
#endif #endif
void void
unmapMiddleStackPage(addr_, size) unmapMiddleStackPage(addr, size)
char * /*caddr_t*/ addr_; char * /*caddr_t*/ addr;
int size; int size;
{ {
int pagesize = GETPAGESIZE(); int pagesize = GETPAGESIZE();
caddr_t addr = addr_; char * middle = (caddr_t) (((W_) (addr + size / 2)) / pagesize * pagesize);
caddr_t middle = (caddr_t) (((W_) (addr + size / 2)) / pagesize * pagesize);
#if defined(cygwin32_TARGET_OS) #if defined(cygwin32_TARGET_OS)
unsigned int old_prot; unsigned int old_prot;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment