1
0
forked from 0ad/0ad

some toe-stepping that evidently resulted in two prot variables :P

This was SVN commit r465.
This commit is contained in:
Simon Brenner 2004-06-09 22:38:37 +00:00
parent ca1994892e
commit a30a82469e

View File

@ -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;