summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-07-17 14:48:16 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-07-17 14:48:16 -0400
commitdf1b9bd2284ab53e0401faf689744c918a4295d3 (patch)
treeeedfdaeb026d6a1c6fe7faea021c7b17d00c37fc
parente55d2d82ca4115c811bb9920f4f5a5c46b61693f (diff)
downloadmongo-df1b9bd2284ab53e0401faf689744c918a4295d3.tar.gz
Move connection config out to a macro.
-rw-r--r--examples/c/ex_async.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c/ex_async.c b/examples/c/ex_async.c
index 417e02ef61b..1db557e98f0 100644
--- a/examples/c/ex_async.c
+++ b/examples/c/ex_async.c
@@ -102,9 +102,9 @@ int main(void)
int i, ret;
char k[MAX_KEYS][16], v[MAX_KEYS][16];
- if ((ret = wiredtiger_open(home, NULL,
- "create,cache_size=100MB,async=(enabled=true,ops_max=10,threads=2)",
- &wt_conn)) != 0) {
+#define CONN_CONFIG "create,cache_size=100MB," \
+ "async=(enabled=true,ops_max=10,threads=2)"
+ if ((ret = wiredtiger_open(home, NULL, CONN_CONFIG, &wt_conn)) != 0) {
fprintf(stderr, "Error connecting to %s: %s\n",
home, wiredtiger_strerror(ret));
return (ret);