summaryrefslogtreecommitdiff
path: root/examples/c
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2016-09-16 06:21:24 +0000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2016-09-16 06:21:24 +0000
commit5bc03723a7e77c96b1d5e45a97173654872c727a (patch)
treef0d12b535fee95b721d8d046c3e4dfbfec0a91e2 /examples/c
parentdeeb0f589aab43f0d4b8d97755ed1e13808dcfab (diff)
parent03bbd9d3c9330a5b6e3cbd7d2db1ac7fea5e96bf (diff)
downloadmongodb-3.3.13.tar.gz
Merge branch 'develop' into mongodb-3.4mongodb-3.3.14mongodb-3.3.13
Diffstat (limited to 'examples/c')
-rw-r--r--examples/c/ex_encrypt.c2
-rw-r--r--examples/c/ex_event_handler.c2
-rw-r--r--examples/c/ex_stat.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/c/ex_encrypt.c b/examples/c/ex_encrypt.c
index 5d5cc66c87f..00dc66fc24d 100644
--- a/examples/c/ex_encrypt.c
+++ b/examples/c/ex_encrypt.c
@@ -501,7 +501,7 @@ main(void)
ret = session->open_cursor(session, "table:crypto2", NULL, NULL, &c2);
ret = session->open_cursor(session, "table:nocrypto", NULL, NULL, &nc);
- /*
+ /*
* Insert a set of keys and values. Insert the same data into
* all tables so that we can verify they're all the same after
* we decrypt on read.
diff --git a/examples/c/ex_event_handler.c b/examples/c/ex_event_handler.c
index 7122e71882e..03809cae7c8 100644
--- a/examples/c/ex_event_handler.c
+++ b/examples/c/ex_event_handler.c
@@ -131,7 +131,7 @@ main(void)
*/
if (getenv("WIREDTIGER_HOME") == NULL) {
home = "WT_HOME";
- (void)system("rm -rf WT_HOME && mkdir WT_HOME");
+ ret = system("rm -rf WT_HOME && mkdir WT_HOME");
} else
home = NULL;
diff --git a/examples/c/ex_stat.c b/examples/c/ex_stat.c
index ba473d6be04..cf9e8fb97d1 100644
--- a/examples/c/ex_stat.c
+++ b/examples/c/ex_stat.c
@@ -63,7 +63,7 @@ print_cursor(WT_CURSOR *cursor)
}
/*! [statistics display function] */
-int
+int
print_database_stats(WT_SESSION *session)
{
WT_CURSOR *cursor;
@@ -81,7 +81,7 @@ print_database_stats(WT_SESSION *session)
return (ret);
}
-int
+int
print_file_stats(WT_SESSION *session)
{
WT_CURSOR *cursor;
@@ -99,7 +99,7 @@ print_file_stats(WT_SESSION *session)
return (ret);
}
-int
+int
print_join_cursor_stats(WT_SESSION *session)
{
WT_CURSOR *idx_cursor, *join_cursor, *stat_cursor;