From: "Maciej S. Szmigiero" <maciej.szmigi...@oracle.com> This function is called only with MultiFDSendParams type param so use this type explicitly instead of using an opaque pointer.
Signed-off-by: Maciej S. Szmigiero <maciej.szmigi...@oracle.com> --- migration/multifd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migration/multifd.c b/migration/multifd.c index 2802afe79d0d..039c0de40af5 100644 --- a/migration/multifd.c +++ b/migration/multifd.c @@ -1132,13 +1132,13 @@ out: error_free(local_err); } -static bool multifd_new_send_channel_create(gpointer opaque, Error **errp) +static bool multifd_new_send_channel_create(MultiFDSendParams *p, Error **errp) { if (!multifd_use_packets()) { - return file_send_channel_create(opaque, errp); + return file_send_channel_create(p, errp); } - socket_send_channel_create(multifd_new_send_channel_async, opaque); + socket_send_channel_create(multifd_new_send_channel_async, p); return true; }