[Spice-devel] [spice-gtk v1 1/3] main: return void on migrate_channel_connect()
Victor Toso
victortoso at redhat.com
Wed Sep 4 12:20:39 UTC 2019
From: Victor Toso <me at victortoso.com>
The migration process would happen in idle, so the process only fails
at a later time. No call to migrate_channel_connect() is actually
checking the return value.
Signed-off-by: Victor Toso <victortoso at redhat.com>
---
src/channel-main.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/channel-main.c b/src/channel-main.c
index afdc1ce..a1e5498 100644
--- a/src/channel-main.c
+++ b/src/channel-main.c
@@ -2168,15 +2168,14 @@ static void migrate_channel_new_cb(SpiceSession *s, SpiceChannel *channel, gpoin
G_CALLBACK(migrate_channel_event_cb), data);
}
-static SpiceChannel* migrate_channel_connect(spice_migrate *mig, int type, int id)
+static void
+migrate_channel_connect(spice_migrate *mig, int type, int id)
{
SPICE_DEBUG("migrate_channel_connect %d:%d", type, id);
SpiceChannel *newc = spice_channel_new(mig->session, type, id);
spice_channel_connect(newc);
mig->nchannels++;
-
- return newc;
}
/* coroutine context */
--
2.21.0
More information about the Spice-devel
mailing list