mirror of
https://github.com/samba-team/samba.git
synced 2025-02-07 01:58:28 +03:00
Fix for True64 treating readonly as a reserved word !
Jeremy.
This commit is contained in:
parent
32397e5bc6
commit
d6889b1954
@ -79,11 +79,11 @@ static void *tdb_munmap(void *ptr, tdb_len size)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void *tdb_mmap(tdb_len size, int readonly, int fd)
|
||||
static void *tdb_mmap(tdb_len size, int read_only, int fd)
|
||||
{
|
||||
void *ret = NULL;
|
||||
#ifdef HAVE_MMAP
|
||||
ret = mmap(NULL, size, PROT_READ | (readonly ? 0 : PROT_WRITE), MAP_SHARED|MAP_FILE, fd, 0);
|
||||
ret = mmap(NULL, size, PROT_READ | (read_only ? 0 : PROT_WRITE), MAP_SHARED|MAP_FILE, fd, 0);
|
||||
|
||||
if (ret == (void *)-1)
|
||||
ret = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user