summaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2013-05-22 13:01:43 +1000
committerAnthony Liguori <aliguori@us.ibm.com>2013-05-22 07:40:09 -0500
commit3d1bba20913356ff4f8ff2c38519f10c5f4b77e6 (patch)
tree20564a0e6285f45825429c8823196e9bdf2f42ba /qemu-char.c
parent1239b472bb0dba8060f1af29d40dafbc1b2860d4 (diff)
downloadqemu-3d1bba20913356ff4f8ff2c38519f10c5f4b77e6.tar.gz
qemu-3d1bba20913356ff4f8ff2c38519f10c5f4b77e6.tar.bz2
qemu-3d1bba20913356ff4f8ff2c38519f10c5f4b77e6.zip
glib: Fix some misuses of gsize/size_t types
This unbreaks cross compile builds: configure --target-list="i386-softmmu" --cpu=i386 When building on a 64bit machine. Reported-by: David Holsgrove <david.holsgrove@xilinx.com> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Message-id: 926326e96fd8685d74e9d5bf430fe4ad97a55289.1369191585.git.peter.crosthwaite@xilinx.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c
index cff2896065..5d20d3ce54 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2920,7 +2920,7 @@ void qmp_ringbuf_write(const char *device, const char *data,
CharDriverState *chr;
const uint8_t *write_data;
int ret;
- size_t write_count;
+ gsize write_count;
chr = qemu_chr_find(device);
if (!chr) {