Fix conversions from pointer to int and vice versa
authorStefan Weil <weil@mail.berlios.de>
Wed, 23 Feb 2011 18:09:16 +0000 (19:09 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 20 Mar 2011 21:39:23 +0000 (21:39 +0000)
commite0efb993b817564ef84e462ac1fe35f89b57ad7b
tree805341589c14255dc94c5711d67140f346dcd1e5
parentd81e54de5919f46d911e971804bb4b4d77a8a88a
Fix conversions from pointer to int and vice versa

Here the int values fds[0], sigfd, s, sock and fd are converted
to void pointers which are later converted back to an int value.

These conversions should always use intptr_t instead of unsigned long.

They are needed for environments where sizeof(long) != sizeof(void *).

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpus.c
migration-tcp.c
migration-unix.c
qemu-char.c