From: Juan Quintela Date: Thu, 11 Mar 2010 16:55:38 +0000 (+0100) Subject: remove useless cast X-Git-Tag: v0.13.0-rc0~1040 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c39e2a2e4f9a55065a58a28aa2457f80fc3073e;p=thirdparty%2Fqemu.git remove useless cast values are already pointers, no need to cast them to void * Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- diff --git a/migration-exec.c b/migration-exec.c index 6ff844927cf..54358271c5b 100644 --- a/migration-exec.c +++ b/migration-exec.c @@ -141,8 +141,7 @@ int exec_start_incoming_migration(const char *command) } qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, - exec_accept_incoming_migration, NULL, - (void *)(unsigned long)f); + exec_accept_incoming_migration, NULL, f); return 0; } diff --git a/migration-fd.c b/migration-fd.c index 9cf52ce90ba..0abd372af5b 100644 --- a/migration-fd.c +++ b/migration-fd.c @@ -136,8 +136,7 @@ int fd_start_incoming_migration(const char *infd) return -errno; } - qemu_set_fd_handler2(fd, NULL, fd_accept_incoming_migration, NULL, - (void *)(unsigned long)f); + qemu_set_fd_handler2(fd, NULL, fd_accept_incoming_migration, NULL, f); return 0; }