summaryrefslogtreecommitdiff
path: root/examples/c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-01-17 05:48:03 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-01-17 05:48:03 +1100
commit76addf73581c53f24462ab5fd724048aec36eaf3 (patch)
tree5dee076df3ad7360a111c193c48d3675d7dc9e50 /examples/c
parentae3bd66c8cd2ffa1f0630b035d364a895a4920be (diff)
downloadmongo-76addf73581c53f24462ab5fd724048aec36eaf3.tar.gz
Have WT_CURSOR::equals return 1 when cursors are equal, 0 when not.
Diffstat (limited to 'examples/c')
-rw-r--r--examples/c/ex_all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index 532a4bca66c..108cca583a8 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -246,7 +246,7 @@ cursor_ops(WT_SESSION *session)
/*! [Cursor equality] */
int equal;
ret = cursor->equals(cursor, other, &equal);
- if (equal == 0) {
+ if (equal) {
/* Cursors reference the same key */
} else {
/* Cursors don't reference the same key */