From 330e3e1b91ecbf99af3b598b324f21b5eff933fd Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 23 Mar 2012 10:41:55 +1030 Subject: 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 --- lib/tdb/common/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb/common/io.c') 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)) { -- cgit