summaryrefslogtreecommitdiff
path: root/test/utility
diff options
context:
space:
mode:
authorsueloverso <sue@mongodb.com>2016-05-23 16:27:25 -0400
committersueloverso <sue@mongodb.com>2016-05-23 16:27:25 -0400
commit2c16e4a8a669ee1aa22fbed2c7c4351c54fc74f1 (patch)
tree7c41b5e06d24e01a1943c04123940b1749edcdae /test/utility
parent9768c2db0baa654ed2953bf7a308bd7f7e2de7d6 (diff)
downloadmongo-2c16e4a8a669ee1aa22fbed2c7c4351c54fc74f1.tar.gz
WT-2554 Fix build warnings (#2740)
Diffstat (limited to 'test/utility')
-rw-r--r--test/utility/parse_opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utility/parse_opts.c b/test/utility/parse_opts.c
index 0e9040e6fef..66646893ae6 100644
--- a/test/utility/parse_opts.c
+++ b/test/utility/parse_opts.c
@@ -120,12 +120,12 @@ testutil_parse_opts(int argc, char *argv[], TEST_OPTS *opts)
* Setup the home directory. It needs to be unique for every test
* or the auto make parallel tester gets upset.
*/
- len = snprintf(NULL, 0, "WT_TEST.%s", opts->progname) + 1;
+ len = (size_t)snprintf(NULL, 0, "WT_TEST.%s", opts->progname) + 1;
opts->home = (char *)malloc(len);
snprintf(opts->home, len, "WT_TEST.%s", opts->progname);
/* Setup the default URI string */
- len = snprintf(NULL, 0, "table:%s", opts->progname) + 1;
+ len = (size_t)snprintf(NULL, 0, "table:%s", opts->progname) + 1;
opts->uri = (char *)malloc(len);
snprintf(opts->uri, len, "table:%s", opts->progname);