summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-02-02 19:20:33 -0500
committerKeith Bostic <keith@wiredtiger.com>2015-02-02 19:20:33 -0500
commita26d87a53eb2ac2dcae9312b7979499c34c11613 (patch)
tree38b6553705ee8396d7ac52eef9ebbb5026850e04 /examples/c/ex_all.c
parent8545c4b3b7f5ed306215c82f1ad1cbe3664f0c50 (diff)
downloadmongo-a26d87a53eb2ac2dcae9312b7979499c34c11613.tar.gz
Replace wiredtiger_strerror_r with WT_SESSION.strerror, reference #1516.
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r--examples/c/ex_all.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index 51b4bb42040..51c63e307c6 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -357,12 +357,8 @@ cursor_ops(WT_SESSION *session)
const char *key = "non-existent key";
cursor->set_key(cursor, key);
if ((ret = cursor->remove(cursor)) != 0) {
- char buf[128];
-
- if (wiredtiger_strerror_r(ret, buf, sizeof(buf)) != 0)
- (void)snprintf(
- buf, sizeof(buf), "error value: %d\n", ret);
- fprintf(stderr, "cursor.remove: %s\n", buf);
+ fprintf(stderr,
+ "cursor.remove: %s\n", session->strerror(session, ret));
return (ret);
}
/*! [Display an error thread safe] */