aboutsummaryrefslogtreecommitdiff
path: root/migration/page_cache.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-10-06 18:17:41 +0200
committerJuan Quintela <quintela@redhat.com>2017-10-23 18:03:23 +0200
commit9ca3f963949c88ac58f81de5e1e391bfcd7dbaa3 (patch)
treed6c08bbf30503d85153ad8fb7af06ec0bf64b3c1 /migration/page_cache.c
parentceaaecb49ff99b871aac64329c1a0708abc696a4 (diff)
migration: Make cache size elements use the right types
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/page_cache.c')
-rw-r--r--migration/page_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/migration/page_cache.c b/migration/page_cache.c
index 381e555ddb..6b2dd77cf0 100644
--- a/migration/page_cache.c
+++ b/migration/page_cache.c
@@ -39,12 +39,12 @@ struct CacheItem {
struct PageCache {
CacheItem *page_cache;
- unsigned int page_size;
- int64_t max_num_items;
- int64_t num_items;
+ size_t page_size;
+ size_t max_num_items;
+ size_t num_items;
};
-PageCache *cache_init(int64_t num_pages, unsigned int page_size)
+PageCache *cache_init(size_t num_pages, size_t page_size)
{
int64_t i;