summaryrefslogtreecommitdiff
path: root/migration-fd.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2010-03-11 17:55:38 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-19 15:27:27 -0500
commit1c39e2a2e4f9a55065a58a28aa2457f80fc3073e (patch)
tree9d69209c7d670a67e7c6a9bfd2e44a9fd6706fcb /migration-fd.c
parent31d4ee6cf69b4a78a9ac1fe0c2108dd72f3374f6 (diff)
downloadqemu-1c39e2a2e4f9a55065a58a28aa2457f80fc3073e.tar.gz
qemu-1c39e2a2e4f9a55065a58a28aa2457f80fc3073e.tar.bz2
qemu-1c39e2a2e4f9a55065a58a28aa2457f80fc3073e.zip
remove useless cast
values are already pointers, no need to cast them to void * Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration-fd.c')
-rw-r--r--migration-fd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration-fd.c b/migration-fd.c
index 9cf52ce90b..0abd372af5 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;
}