diff options
author | Juan Quintela <quintela@redhat.com> | 2017-10-06 18:17:41 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-10-23 18:03:23 +0200 |
commit | 9ca3f963949c88ac58f81de5e1e391bfcd7dbaa3 (patch) | |
tree | d6c08bbf30503d85153ad8fb7af06ec0bf64b3c1 /migration | |
parent | ceaaecb49ff99b871aac64329c1a0708abc696a4 (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')
-rw-r--r-- | migration/page_cache.c | 8 | ||||
-rw-r--r-- | migration/page_cache.h | 2 |
2 files changed, 5 insertions, 5 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; diff --git a/migration/page_cache.h b/migration/page_cache.h index 4fadd0c501..931868b857 100644 --- a/migration/page_cache.h +++ b/migration/page_cache.h @@ -28,7 +28,7 @@ typedef struct PageCache PageCache; * @num_pages: cache maximal number of cached pages * @page_size: cache page size */ -PageCache *cache_init(int64_t num_pages, unsigned int page_size); +PageCache *cache_init(size_t num_pages, size_t page_size); /** * cache_fini: free all cache resources |