diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-05-06 11:16:47 +1000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-05-06 11:16:47 +1000 |
commit | ebf7465127a2c337dde87b7fce8af92fa213fb68 (patch) | |
tree | 3f53748eff8ffad1491e13ff799e182034576f06 | |
parent | d2c02e3276cc1fa41ba5324852523d9c52199e9a (diff) | |
download | mongo-ebf7465127a2c337dde87b7fce8af92fa213fb68.tar.gz |
Fix lint in test/checkpoint.
-rw-r--r-- | test/checkpoint/checkpointer.c | 2 | ||||
-rw-r--r-- | test/checkpoint/test_checkpoint.c | 2 | ||||
-rw-r--r-- | test/checkpoint/workers.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/test/checkpoint/checkpointer.c b/test/checkpoint/checkpointer.c index c712ae7b8e3..59c699ea8fc 100644 --- a/test/checkpoint/checkpointer.c +++ b/test/checkpoint/checkpointer.c @@ -345,7 +345,7 @@ diagnose_key_error( c->set_key(c, key2_orig); if ((ret = c->search(c)) != 0) (void)log_print_err("1st cursor didn't find 2nd key\n", ret, 0); - c->close(c); + (void)c->close(c); snprintf(next_uri, 128, "table:__wt%04d", index2); ret = session->open_cursor(session, next_uri, NULL, ckpt, &c); diff --git a/test/checkpoint/test_checkpoint.c b/test/checkpoint/test_checkpoint.c index 1f025dc087b..7b26766b9ca 100644 --- a/test/checkpoint/test_checkpoint.c +++ b/test/checkpoint/test_checkpoint.c @@ -300,7 +300,7 @@ log_print_err(const char *m, int e, int fatal) * path_setup -- * Build the standard paths and shell commands we use. */ -int +static int path_setup(const char *home) { size_t len; diff --git a/test/checkpoint/workers.c b/test/checkpoint/workers.c index e5e000d315e..1a01dda649c 100644 --- a/test/checkpoint/workers.c +++ b/test/checkpoint/workers.c @@ -84,7 +84,8 @@ start_workers(table_type type) for (i = 0; i < g.ntables; ++i) { g.cookies[i].id = i; if (type == MIX) - g.cookies[i].type = (i % MAX_TABLE_TYPE) + 1; + g.cookies[i].type = + (table_type)((i % MAX_TABLE_TYPE) + 1); else g.cookies[i].type = type; (void)snprintf(g.cookies[i].uri, 128, |