summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/examples/c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/examples/c')
-rw-r--r--src/third_party/wiredtiger/examples/c/ex_all.c5
-rw-r--r--src/third_party/wiredtiger/examples/c/ex_thread.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_all.c b/src/third_party/wiredtiger/examples/c/ex_all.c
index 139f39fe673..190c2c421d3 100644
--- a/src/third_party/wiredtiger/examples/c/ex_all.c
+++ b/src/third_party/wiredtiger/examples/c/ex_all.c
@@ -1356,8 +1356,9 @@ main(int argc, char *argv[])
const char *buffer = "some string";
size_t len = strlen(buffer);
/*! [Checksum a buffer] */
- uint32_t crc32c;
- crc32c = wiredtiger_checksum_crc32c(buffer, len);
+ uint32_t crc32c, (*func)(const void *, size_t);
+ func = wiredtiger_crc32c_func();
+ crc32c = func(buffer, len);
/*! [Checksum a buffer] */
(void)crc32c;
}
diff --git a/src/third_party/wiredtiger/examples/c/ex_thread.c b/src/third_party/wiredtiger/examples/c/ex_thread.c
index f709707bffc..79aef70d644 100644
--- a/src/third_party/wiredtiger/examples/c/ex_thread.c
+++ b/src/third_party/wiredtiger/examples/c/ex_thread.c
@@ -95,7 +95,7 @@ main(int argc, char *argv[])
__wt_thread_create(NULL, &threads[i], scan_thread, conn));
for (i = 0; i < NUM_THREADS; i++)
- error_check(__wt_thread_join(NULL, threads[i]));
+ error_check(__wt_thread_join(NULL, &threads[i]));
error_check(conn->close(conn, NULL));