Index: madvise.cc |
=================================================================== |
--- madvise.cc (revision 168) |
+++ madvise.cc (working copy) |
@@ -38,8 +38,8 @@ |
case MADV_WILLNEED: |
ok: |
SecureMem::sendSystemCall(*info, SecureMem::SEND_UNLOCKED, |
- madvise_req.start, madvise_req.len, |
- madvise_req.advice); |
+ const_cast<void*>(madvise_req.start), |
+ madvise_req.len, madvise_req.advice); |
return true; |
default: |
// All other flags to madvise() are potential dangerous (as opposed to |