Explorar o código

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>
Juan Quintela %!s(int64=15) %!d(string=hai) anos
pai
achega
1c39e2a2e4
Modificáronse 2 ficheiros con 2 adicións e 4 borrados
  1. 1 2
      migration-exec.c
  2. 1 2
      migration-fd.c

+ 1 - 2
migration-exec.c

@@ -141,8 +141,7 @@ int exec_start_incoming_migration(const char *command)
     }
     }
 
 
     qemu_set_fd_handler2(qemu_stdio_fd(f), NULL,
     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;
     return 0;
 }
 }

+ 1 - 2
migration-fd.c

@@ -136,8 +136,7 @@ int fd_start_incoming_migration(const char *infd)
         return -errno;
         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;
     return 0;
 }
 }