diff options
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/tdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index d4bd3001fc..b1335728ab 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -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; |