mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
red-channel-client: Inline red_channel_client_get_channel in macro
Inline red_channel_client_get_channel in spice_channel_client_error macro. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
parent
609398fb77
commit
6ccf0e4800
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user