diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-14 00:41:15 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-14 00:41:15 +0000 |
commit | a8410f20c1dfe0da984e162c013f48ebb60f3a9d (patch) | |
tree | e9789b75439ec144d0c1027017481eaee7b19c77 | |
parent | 53850c51caf1c4d53ff285b2e5505e0615beeeee (diff) | |
download | samba-a8410f20c1dfe0da984e162c013f48ebb60f3a9d.tar.gz samba-a8410f20c1dfe0da984e162c013f48ebb60f3a9d.tar.bz2 samba-a8410f20c1dfe0da984e162c013f48ebb60f3a9d.zip |
Fix for True64 treating readonly as a reserved word !
Jeremy.
(This used to be commit d6889b1954bd863fd04cf43fb25f178b1d1ab67f)
-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; |