projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
751a8a3
)
tdb2: fix two bogus returns in check.c
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000
(22:12 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000
(22:12 +1030)
Two missed cases in
b21004624683
(tdb2: change API to return the error
value.)
ccan/tdb2/check.c
patch
|
blob
|
history
diff --git
a/ccan/tdb2/check.c
b/ccan/tdb2/check.c
index de1cb98b8ce1c8c4ac52f49ce754ca8d82a6c40c..6fdfac3605be33d694885c6b73f2863f9e0d32f1 100644
(file)
--- a/
ccan/tdb2/check.c
+++ b/
ccan/tdb2/check.c
@@
-131,7
+131,7
@@
static enum TDB_ERROR check_hash_chain(struct tdb_context *tdb,
ecode = check_hash_tree(tdb, off, 0, hash, 64,
used, num_used, num_found, check, private_data);
if (ecode != TDB_SUCCESS) {
- return
fals
e;
+ return
ecod
e;
}
off = tdb_read_off(tdb, off + offsetof(struct tdb_chain, next));
@@
-526,7
+526,7
@@
static enum TDB_ERROR check_free_table(struct tdb_context *tdb,
}
ecode = check_free(tdb, off, &f, prev, ftable_num, i);
if (ecode != TDB_SUCCESS) {
- return
fals
e;
+ return
ecod
e;
}
/* FIXME: Check hash bits */