summaryrefslogtreecommitdiff
path: root/test/manydbs
diff options
context:
space:
mode:
authorSusan LoVerso <sue@mongodb.com>2016-03-10 09:51:00 -0500
committerSusan LoVerso <sue@mongodb.com>2016-03-10 09:51:00 -0500
commit10ee3a4a1910745bc09fcc6d057343c345672b7d (patch)
tree266295ea2a58e124ca2d7d097d9e014b077009c1 /test/manydbs
parent7750e39b2c656fd7016ec29263ac89302be25721 (diff)
downloadmongo-10ee3a4a1910745bc09fcc6d057343c345672b7d.tar.gz
WT-2318 Fix warnings.
Diffstat (limited to 'test/manydbs')
-rw-r--r--test/manydbs/manydbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/manydbs/manydbs.c b/test/manydbs/manydbs.c
index 4627dc703fe..5ca0bcbbb5f 100644
--- a/test/manydbs/manydbs.c
+++ b/test/manydbs/manydbs.c
@@ -101,9 +101,9 @@ run_ops(int dbs)
*/
if (session == NULL) {
__wt_random_init(&rnd);
- if ((session = calloc(dbs, sizeof(WT_SESSION *))) == NULL)
+ if ((session = calloc((size_t)dbs, sizeof(WT_SESSION *))) == NULL)
testutil_die(ENOMEM, "session array malloc");
- if ((cursor = calloc(dbs, sizeof(WT_CURSOR *))) == NULL)
+ if ((cursor = calloc((size_t)dbs, sizeof(WT_CURSOR *))) == NULL)
testutil_die(ENOMEM, "cursor array malloc");
for (i = 0; i < dbs; ++i) {
testutil_check(conn[i]->open_session(conn[i],
@@ -122,7 +122,7 @@ run_ops(int dbs)
*/
db_set = dbs / 4;
for (i = 0; i < db_set; ++i) {
- db = __wt_random(&rnd) % dbs;
+ db = __wt_random(&rnd) % (uint32_t)dbs;
printf("Write to database %" PRIu32 "\n", db);
for (key = 0; key < MAX_KV; ++key) {
data.size = __wt_random(&rnd) % MAX_VAL;
@@ -182,7 +182,7 @@ main(int argc, char *argv[])
if (argc != 0)
usage();
- if ((conn = calloc(dbs, sizeof(WT_CONNECTION *))) == NULL)
+ if ((conn = calloc((size_t)dbs, sizeof(WT_CONNECTION *))) == NULL)
testutil_die(ENOMEM, "connection array malloc");
memset(cmd, 0, sizeof(cmd));
/*