summaryrefslogtreecommitdiff
path: root/test/recovery
diff options
context:
space:
mode:
authorSusan LoVerso <sue@mongodb.com>2016-01-28 15:49:24 -0500
committerSusan LoVerso <sue@mongodb.com>2016-01-28 15:49:24 -0500
commit7eb48119473b97bd2b68a5755094ec7045b9e56f (patch)
tree16ffc6cd56ff966f2b6268360950dbe1e93010e1 /test/recovery
parent64cb0434c95d3087b477d7e598ad504d0d81adbc (diff)
downloadmongo-7eb48119473b97bd2b68a5755094ec7045b9e56f.tar.gz
WT-2356 Fix warnings
Diffstat (limited to 'test/recovery')
-rw-r--r--test/recovery/truncated-log/recovery.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/recovery/truncated-log/recovery.c b/test/recovery/truncated-log/recovery.c
index 6d8a483ca0a..c18cbd1a670 100644
--- a/test/recovery/truncated-log/recovery.c
+++ b/test/recovery/truncated-log/recovery.c
@@ -81,7 +81,7 @@ fill_db(void)
uint32_t i, max_key, min_key, units, unused;
int ret;
bool first;
- uint8_t k[K_SIZE], v[V_SIZE];
+ char k[K_SIZE], v[V_SIZE];
/*
* Run in the home directory so that the records file is in there too.
@@ -124,9 +124,9 @@ fill_db(void)
max_key = min_key * 2;
first = true;
for (i = 0; i < max_key; ++i) {
- snprintf(k, sizeof(k), "key%03d", i);
+ snprintf(k, sizeof(k), "key%03d", (int)i);
snprintf(v, sizeof(v), "value%0*d",
- (int)(V_SIZE - strlen("value")), i);
+ (int)(V_SIZE - strlen("value")), (int)i);
cursor->set_key(cursor, k);
cursor->set_value(cursor, v);
if ((ret = cursor->insert(cursor)) != 0)