Chromium Code Reviews

Unified Diff: mprotect.cc

Issue 7326013: GCC 4.6 warnings cleanup (Closed) Base URL: http://seccompsandbox.googlecode.com/svn/trunk/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « madvise.cc ('k') | securemem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mprotect.cc
===================================================================
--- mprotect.cc (revision 168)
+++ mprotect.cc (working copy)
@@ -41,7 +41,8 @@
// Changing permissions on memory regions that were newly mapped inside of
// the sandbox is OK.
- SecureMem::sendSystemCall(*info, SecureMem::SEND_UNLOCKED, mprotect_req.addr,
+ SecureMem::sendSystemCall(*info, SecureMem::SEND_UNLOCKED,
+ const_cast<void*>(mprotect_req.addr),
mprotect_req.len, mprotect_req.prot);
return true;
}
« no previous file with comments | « madvise.cc ('k') | securemem.h » ('j') | no next file with comments »

Powered by Google App Engine