mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler
Done with following Coccinelle semantic patch, plus manual cosmetic changes in net/*.c. @@ expression E1, E2, E3, E4; @@ - qemu_set_fd_handler2(E1, NULL, E2, E3, E4); + qemu_set_fd_handler(E1, E2, E3, E4); Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1433400324-7358-8-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
a90a7425cf
commit
82e1cc4bf9
@ -49,7 +49,7 @@ static void exec_accept_incoming_migration(void *opaque)
|
||||
{
|
||||
QEMUFile *f = opaque;
|
||||
|
||||
qemu_set_fd_handler2(qemu_get_fd(f), NULL, NULL, NULL, NULL);
|
||||
qemu_set_fd_handler(qemu_get_fd(f), NULL, NULL, NULL);
|
||||
process_incoming_migration(f);
|
||||
}
|
||||
|
||||
@ -64,6 +64,6 @@ void exec_start_incoming_migration(const char *command, Error **errp)
|
||||
return;
|
||||
}
|
||||
|
||||
qemu_set_fd_handler2(qemu_get_fd(f), NULL,
|
||||
exec_accept_incoming_migration, NULL, f);
|
||||
qemu_set_fd_handler(qemu_get_fd(f), exec_accept_incoming_migration, NULL,
|
||||
f);
|
||||
}
|
||||
|
Reference in New Issue
Block a user