summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r--examples/c/ex_all.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index 418c99ad6a3..1c036b75461 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -346,8 +346,7 @@ cursor_ops(WT_SESSION *session)
cursor->set_key(cursor, key);
if ((ret = cursor->remove(cursor)) != 0) {
fprintf(stderr,
- "cursor.remove: %s\n",
- cursor->session->strerror(cursor->session, ret));
+ "cursor.remove: %s\n", wiredtiger_strerror(ret));
return (ret);
}
/*! [Display an error] */
@@ -359,7 +358,8 @@ cursor_ops(WT_SESSION *session)
cursor->set_key(cursor, key);
if ((ret = cursor->remove(cursor)) != 0) {
fprintf(stderr,
- "cursor.remove: %s\n", session->strerror(session, ret));
+ "cursor.remove: %s\n",
+ cursor->session->strerror(cursor->session, ret));
return (ret);
}
/*! [Display an error thread safe] */