
diff -r 1eef845c77d0 -r c2465f3f0a24 src/Virt_SettingsDefineCapabilities.c
@@ -701,7 +701,7 @@ static struct sdc_rasd_prop *disk_max(co bool ret; const char *inst_id; CMPIrc prop_ret; - uint16_t free_space; + uint64_t free_space; uint64_t free_64; virConnectPtr conn; CMPIInstance *pool_inst; @@ -737,11 +737,11 @@ static struct sdc_rasd_prop *disk_max(co } CU_DEBUG("Got capacity from pool_inst: %lld", free_64);
- free_space = (uint16_t)free_64; + free_space = free_64;
I don't think we need both free_space and free_64 anymore. free_64 is used to get the value from the Capacity attribute. The only other time it's used is when free_space is assigned its value. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com