Inline red_channel_client_get_channel in spice_channel_client_error macro. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/red-channel-client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/red-channel-client.c b/server/red-channel-client.c index 337733d5d..2fee76f57 100644 --- a/server/red-channel-client.c +++ b/server/red-channel-client.c @@ -178,8 +178,7 @@ static bool red_channel_client_config_socket(RedChannelClient *rcc); */ #define spice_channel_client_error(rcc, format, ...) \ do { \ - RedChannel *_ch = red_channel_client_get_channel(rcc); \ - red_channel_warning(_ch, format, ## __VA_ARGS__); \ + red_channel_warning(rcc->priv->channel, format, ## __VA_ARGS__); \ red_channel_client_shutdown(rcc); \ } while (0) -- 2.21.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel