projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tdb2: tdb_expand on empty database now tested.
[ccan]
/
ccan
/
tdb2
/
check.c
diff --git
a/ccan/tdb2/check.c
b/ccan/tdb2/check.c
index e39e50837d31c92de88de9efe85d574fdfc8af2e..ca5479b56d06fbf9650982a6c7b34325b11dc62e 100644
(file)
--- a/
ccan/tdb2/check.c
+++ b/
ccan/tdb2/check.c
@@
-86,8
+86,8
@@
static bool check_header(struct tdb_context *tdb)
static int off_cmp(const tdb_off_t *a, const tdb_off_t *b)
{
/* Can overflow an int. */
- return
a >
b ? 1
- :
a <
b ? -1
+ return
*a > *
b ? 1
+ :
*a < *
b ? -1
: 0;
}