summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/examples/c/ex_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/examples/c/ex_all.c')
-rw-r--r--src/third_party/wiredtiger/examples/c/ex_all.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_all.c b/src/third_party/wiredtiger/examples/c/ex_all.c
index e8727df3f60..a2042c22bbb 100644
--- a/src/third_party/wiredtiger/examples/c/ex_all.c
+++ b/src/third_party/wiredtiger/examples/c/ex_all.c
@@ -1126,7 +1126,7 @@ main(void)
home, NULL, "create,file_extend=(data=16MB)", &conn);
/*! [Configure file_extend] */
if (ret == 0)
- (void)conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
/*! [Eviction configuration] */
/*
@@ -1137,7 +1137,7 @@ main(void)
"create,eviction_trigger=90,eviction_dirty_target=75", &conn);
/*! [Eviction configuration] */
if (ret == 0)
- (void)conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
/*! [Eviction worker configuration] */
/* Configure up to four eviction threads */
@@ -1145,20 +1145,20 @@ main(void)
"create,eviction_trigger=90,eviction=(threads_max=4)", &conn);
/*! [Eviction worker configuration] */
if (ret == 0)
- (void)conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
/*! [Statistics configuration] */
ret = wiredtiger_open(home, NULL, "create,statistics=(all)", &conn);
/*! [Statistics configuration] */
if (ret == 0)
- (void)conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
/*! [Statistics logging] */
ret = wiredtiger_open(
home, NULL, "create,statistics_log=(wait=30)", &conn);
/*! [Statistics logging] */
if (ret == 0)
- (void)conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
#ifdef MIGHT_NOT_RUN
/*
@@ -1171,7 +1171,7 @@ main(void)
&conn);
/*! [Statistics logging with a table] */
if (ret == 0)
- (void)conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
/*
* Don't run this code, statistics logging doesn't yet support indexes.
@@ -1182,7 +1182,7 @@ main(void)
&conn);
/*! [Statistics logging with a source type] */
if (ret == 0)
- (void)conn->close(conn, NULL);
+ ret = conn->close(conn, NULL);
/*
* Don't run this code, because memory checkers get very upset when we