some toe-stepping that evidently resulted in two prot variables :P
This was SVN commit r465.
This commit is contained in:
parent
ca1994892e
commit
a30a82469e
@ -1365,7 +1365,6 @@ int file_map(File* const f, void*& p, size_t& size)
|
||||
if(f->size == 0)
|
||||
return -1;
|
||||
|
||||
const int prot = (f->flags & FILE_WRITE)? PROT_WRITE : PROT_READ;
|
||||
f->mapping = mmap((void*)0, f->size, prot, MAP_PRIVATE, f->fd, (off_t)0);
|
||||
if(!f->mapping)
|
||||
return ERR_NO_MEM;
|
||||
|
Loading…
Reference in New Issue
Block a user