1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: use size_t for buflen in _stats_group_file_regions()

This commit is contained in:
Bryn M. Reeves 2017-03-29 20:46:21 +01:00
parent 833b02106d
commit b823646ace

View File

@ -4219,7 +4219,7 @@ static int _stats_group_file_regions(struct dm_stats *dms, uint64_t *region_ids,
dm_bitset_t regions = dm_bitset_create(NULL, dms->nr_regions);
uint64_t i, group_id = DM_STATS_GROUP_NOT_PRESENT;
char *members = NULL;
int buflen;
size_t buflen;
if (!regions) {
log_error("Cannot map file: failed to allocate group bitmap.");