[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 06/13] Use unsigned types for the 'len' argument
From: |
Martin Galvan |
Subject: |
[Qemu-devel] [PATCH v2 06/13] Use unsigned types for the 'len' argument of all memory read/write functions |
Date: |
Tue, 1 Mar 2016 12:57:32 -0300 |
---
hw/audio/marvell_88w8618.c | 2 +-
hw/audio/milkymist-ac97.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/audio/marvell_88w8618.c b/hw/audio/marvell_88w8618.c
index a6ca180..c4edf99 100644
--- a/hw/audio/marvell_88w8618.c
+++ b/hw/audio/marvell_88w8618.c
@@ -64,7 +64,7 @@ static void mv88w8618_audio_callback(void *opaque, int
free_out, int free_in)
int16_t *codec_buffer;
int8_t buf[4096];
int8_t *mem_buffer;
- int pos, block_size;
+ size_t pos, block_size;
if (!(s->playback_mode & MP_AUDIO_PLAYBACK_EN)) {
return;
diff --git a/hw/audio/milkymist-ac97.c b/hw/audio/milkymist-ac97.c
index 6a3b536..67639c6 100644
--- a/hw/audio/milkymist-ac97.c
+++ b/hw/audio/milkymist-ac97.c
@@ -195,7 +195,7 @@ static void ac97_in_cb(void *opaque, int avail_b)
}
while (temp) {
- int acquired, to_copy;
+ size_t acquired, to_copy;
to_copy = audio_MIN(temp, sizeof(buf));
acquired = AUD_read(s->voice_in, buf, to_copy);
@@ -238,7 +238,7 @@ static void ac97_out_cb(void *opaque, int free_b)
}
while (temp) {
- int copied, to_copy;
+ size_t copied, to_copy;
to_copy = audio_MIN(temp, sizeof(buf));
cpu_physical_memory_read(addr, buf, to_copy);
--
2.7.1
- [Qemu-devel] [PATCH v2 01/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 03/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 02/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 04/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 05/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 06/13] Use unsigned types for the 'len' argument of all memory read/write functions,
Martin Galvan <=
- [Qemu-devel] [PATCH v2 07/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 08/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 09/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 10/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 11/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 12/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- [Qemu-devel] [PATCH v2 13/13] Use unsigned types for the 'len' argument of all memory read/write functions, Martin Galvan, 2016/03/01
- Re: [Qemu-devel] [PATCH v2 01/13] Use unsigned types for the 'len' argument of all memory read/write functions, Eric Blake, 2016/03/01