[Spice-devel] [PATCH spice-server 2/2] red-channel-client: Inline red_channel_client_get_channel in macro
Frediano Ziglio
fziglio at redhat.com
Wed Sep 11 07:55:47 UTC 2019
Inline red_channel_client_get_channel in spice_channel_client_error
macro.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
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
More information about the Spice-devel
mailing list