diff options
Diffstat (limited to 'examples/c/ex_call_center.c')
-rw-r--r-- | examples/c/ex_call_center.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c/ex_call_center.c b/examples/c/ex_call_center.c index d401507d165..cd53a1cdaf9 100644 --- a/examples/c/ex_call_center.c +++ b/examples/c/ex_call_center.c @@ -107,8 +107,8 @@ main(void) if ((ret = wiredtiger_open(home, NULL, "create", &conn)) != 0) { fprintf(stderr, "Error connecting to %s: %s\n", - home, wiredtiger_strerror(ret)); - return (1); + home == NULL ? "." : home, wiredtiger_strerror(ret)); + return (EXIT_FAILURE); } /* Note: further error checking omitted for clarity. */ @@ -245,5 +245,5 @@ main(void) ret = conn->close(conn, NULL); - return (ret); + return (ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } |