diff options
author | Stefan Weil | 2012-03-10 21:20:53 +0100 |
---|---|---|
committer | Jan Kiszka | 2012-03-13 16:15:19 +0100 |
commit | 2d26512b45b5236fa521c4492608fe9fb5bedf46 (patch) | |
tree | 84f12a0d40aa73cc4a56a05fda8794bfda5a559c /hw/usb-musb.c | |
parent | slirp: Cleanup resources on instance removal (diff) | |
download | qemu-2d26512b45b5236fa521c4492608fe9fb5bedf46.tar.gz qemu-2d26512b45b5236fa521c4492608fe9fb5bedf46.tar.xz qemu-2d26512b45b5236fa521c4492608fe9fb5bedf46.zip |
slirp: Fix compiler warning for w64
Casting a pointer to an integer value must use uintptr_t or intptr_t
(not long) for portable code. MinGW-w64 requires this because
sizeof(long) != sizeof(void *) for w64 hosts, so casting to long
raises a compiler warning.
I use uintptr_t instead of intptr_t because changing the sign does not
matter here and casting pointers to unsigned values seems more
reasonable (the unsigned value is a non negative offset.
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'hw/usb-musb.c')
0 files changed, 0 insertions, 0 deletions