From a8410f20c1dfe0da984e162c013f48ebb60f3a9d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 14 Apr 2001 00:41:15 +0000 Subject: Fix for True64 treating readonly as a reserved word ! Jeremy. (This used to be commit d6889b1954bd863fd04cf43fb25f178b1d1ab67f) --- source3/tdb/tdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/tdb/tdb.c') 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; -- cgit