diff mbox series

[RFC,04/26] multifd: change multifd_new_send_channel_create() param type

Message ID 5c3960379819c9617755c97785844b840c616057.1713269378.git.maciej.szmigiero@oracle.com (mailing list archive)
State New, archived
Headers show
Series Multifd | expand

Commit Message

Maciej S. Szmigiero April 16, 2024, 2:42 p.m. UTC
From: "Maciej S. Szmigiero" <maciej.szmigiero@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.szmigiero@oracle.com>
---
 migration/multifd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

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;
 }