summaryrefslogtreecommitdiff
path: root/lib/tdb/common
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-03-23 10:41:55 +1030
committerRusty Russell <rusty@rustcorp.com.au>2012-03-23 10:41:55 +1030
commit330e3e1b91ecbf99af3b598b324f21b5eff933fd (patch)
tree0cdcdfe257033f7c3b64ebe96bfeae488eef43f7 /lib/tdb/common
parent8718c7b88de993cef66c2a26ff1addd52b30b05c (diff)
downloadsamba-330e3e1b91ecbf99af3b598b324f21b5eff933fd.tar.gz
samba-330e3e1b91ecbf99af3b598b324f21b5eff933fd.tar.bz2
samba-330e3e1b91ecbf99af3b598b324f21b5eff933fd.zip
lib/tdb: fix missing return 0 code.
fde694274e1e5a11d1473695e7ec7a97f95d39e4 made tdb_mmap return an int, but didn't put the return 0 on the "internal db" case. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb/common')
-rw-r--r--lib/tdb/common/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/io.c b/lib/tdb/common/io.c
index 24c2d615ab..be5a9ca5b2 100644
--- a/lib/tdb/common/io.c
+++ b/lib/tdb/common/io.c
@@ -244,7 +244,7 @@ static bool should_mmap(const struct tdb_context *tdb)
int tdb_mmap(struct tdb_context *tdb)
{
if (tdb->flags & TDB_INTERNAL)
- return;
+ return 0;
#ifdef HAVE_MMAP
if (should_mmap(tdb)) {