summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-01-16 14:50:29 +0100
committerBlue Swirl <blauwirbel@gmail.com>2013-01-19 10:22:48 +0000
commit0e7a75929353b04bd2fce1be8640226883b42a10 (patch)
treeb50137042e6b5acccd807ab833abd12fbd6aba9a /vl.c
parent089da572b956ef0f8f5b8d5917358e07892a77c2 (diff)
downloadqemu-0e7a75929353b04bd2fce1be8640226883b42a10.tar.gz
qemu-0e7a75929353b04bd2fce1be8640226883b42a10.tar.bz2
qemu-0e7a75929353b04bd2fce1be8640226883b42a10.zip
vl: Use size_t for sizes in get_boot_devices_list()
Code mixes uint32_t, int and size_t. Very unlikely to go wrong in practice, but clean it up anyway. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index f4cf7e8a85..4ee1302595 100644
--- a/vl.c
+++ b/vl.c
@@ -1198,15 +1198,15 @@ void add_boot_device_path(int32_t bootindex, DeviceState *dev,
* memory pointed by "size" is assigned total length of the array in bytes
*
*/
-char *get_boot_devices_list(uint32_t *size)
+char *get_boot_devices_list(size_t *size)
{
FWBootEntry *i;
- uint32_t total = 0;
+ size_t total = 0;
char *list = NULL;
QTAILQ_FOREACH(i, &fw_boot_order, link) {
char *devpath = NULL, *bootpath;
- int len;
+ size_t len;
if (i->dev) {
devpath = qdev_get_fw_dev_path(i->dev);