[Spice-devel] [PATCH spice-gtk 2/2] channel-main: Move variable to block where is needed
Christophe Fergeau
cfergeau at redhat.com
Fri Apr 15 08:47:15 UTC 2016
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
On Thu, Apr 14, 2016 at 06:01:24PM +0200, Pavel Grunt wrote:
> ---
> src/channel-main.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/src/channel-main.c b/src/channel-main.c
> index a7770fa..604f333 100644
> --- a/src/channel-main.c
> +++ b/src/channel-main.c
> @@ -2247,17 +2247,14 @@ static void migrate_channel_event_cb(SpiceChannel *channel, SpiceChannelEvent ev
> {
> spice_migrate *mig = data;
> SpiceChannelPrivate *c = SPICE_CHANNEL(channel)->priv;
> - SpiceSession *session;
>
> g_return_if_fail(mig->nchannels > 0);
> g_signal_handlers_disconnect_by_func(channel, migrate_channel_event_cb, data);
>
> - session = spice_channel_get_session(mig->src_channel);
> -
> switch (event) {
> case SPICE_CHANNEL_OPENED:
> -
> if (c->channel_type == SPICE_CHANNEL_MAIN) {
> + SpiceSession *session = spice_channel_get_session(mig->src_channel);
> if (mig->do_seamless) {
> SpiceMainChannelPrivate *main_priv = SPICE_MAIN_CHANNEL(channel)->priv;
>
> --
> 2.8.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160415/354aad5c/attachment-0001.sig>
More information about the Spice-devel
mailing list