summaryrefslogtreecommitdiff
path: root/examples/c/ex_cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_cursor.c')
-rw-r--r--examples/c/ex_cursor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/c/ex_cursor.c b/examples/c/ex_cursor.c
index f7382a5d6c5..e8f9b7fa9e8 100644
--- a/examples/c/ex_cursor.c
+++ b/examples/c/ex_cursor.c
@@ -43,7 +43,7 @@ int cursor_insert(WT_CURSOR *cursor);
int cursor_update(WT_CURSOR *cursor);
int cursor_remove(WT_CURSOR *cursor);
-const char *home;
+static const char *home;
/*! [cursor next] */
int
@@ -158,7 +158,8 @@ cursor_remove(WT_CURSOR *cursor)
}
/*! [cursor remove] */
-int main(void)
+int
+main(void)
{
WT_CONNECTION *conn;
WT_CURSOR *cursor;