summaryrefslogtreecommitdiff
path: root/src/block/block_ckpt.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-12-23 17:54:24 -0500
committerKeith Bostic <keith@wiredtiger.com>2013-12-23 17:55:16 -0500
commit4000a395a4d0d6aec1706e0ccb9252a9ed045618 (patch)
tree4b84c8b9256d1fcbe66099622fce5ae6367f88a9 /src/block/block_ckpt.c
parentbba3fad23603258988ef5d16dcc03c1a792b5fca (diff)
downloadmongo-4000a395a4d0d6aec1706e0ccb9252a9ed045618.tar.gz
Make addr_size (block manager's address sizes) a size_t instead of a
uint32_t. General review of uint32_t's, remove/cleanup where it's not necessary to limit the type to 4B.
Diffstat (limited to 'src/block/block_ckpt.c')
-rw-r--r--src/block/block_ckpt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/block/block_ckpt.c b/src/block/block_ckpt.c
index 983aa057f9d..a1cf3a8f0a0 100644
--- a/src/block/block_ckpt.c
+++ b/src/block/block_ckpt.c
@@ -40,8 +40,8 @@ __wt_block_ckpt_init(
*/
int
__wt_block_checkpoint_load(WT_SESSION_IMPL *session, WT_BLOCK *block,
- const uint8_t *addr, uint32_t addr_size,
- uint8_t *root_addr, uint32_t *root_addr_size, int checkpoint)
+ const uint8_t *addr, size_t addr_size,
+ uint8_t *root_addr, size_t *root_addr_sizep, int checkpoint)
{
WT_BLOCK_CKPT *ci, _ci;
WT_DECL_ITEM(tmp);
@@ -56,7 +56,7 @@ __wt_block_checkpoint_load(WT_SESSION_IMPL *session, WT_BLOCK *block,
* or the checkpoint was empty). In that case we return an empty root
* address, set that up now.
*/
- *root_addr_size = 0;
+ *root_addr_sizep = 0;
if (WT_VERBOSE_ISSET(session, ckpt)) {
if (addr != NULL) {
@@ -106,7 +106,7 @@ __wt_block_checkpoint_load(WT_SESSION_IMPL *session, WT_BLOCK *block,
endp = root_addr;
WT_ERR(__wt_block_addr_to_buffer(block, &endp,
ci->root_offset, ci->root_size, ci->root_cksum));
- *root_addr_size = WT_PTRDIFF32(endp, root_addr);
+ *root_addr_sizep = WT_PTRDIFF(endp, root_addr);
}
/*