diff options
author | sueloverso <sue@mongodb.com> | 2016-05-23 16:27:25 -0400 |
---|---|---|
committer | sueloverso <sue@mongodb.com> | 2016-05-23 16:27:25 -0400 |
commit | 2c16e4a8a669ee1aa22fbed2c7c4351c54fc74f1 (patch) | |
tree | 7c41b5e06d24e01a1943c04123940b1749edcdae /test/utility | |
parent | 9768c2db0baa654ed2953bf7a308bd7f7e2de7d6 (diff) | |
download | mongo-2c16e4a8a669ee1aa22fbed2c7c4351c54fc74f1.tar.gz |
WT-2554 Fix build warnings (#2740)
Diffstat (limited to 'test/utility')
-rw-r--r-- | test/utility/parse_opts.c | 4 |
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); |