[Spice-devel] [PATCH 6/6] change main_channel_marshall_mouse_mode call style
Frediano Ziglio
fziglio at redhat.com
Fri May 6 09:34:53 UTC 2016
Make the call more similar to other marshall function calls in the
same function.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/main-channel-client.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/server/main-channel-client.c b/server/main-channel-client.c
index 5a24323..e03cad7 100644
--- a/server/main-channel-client.c
+++ b/server/main-channel-client.c
@@ -851,12 +851,9 @@ void main_channel_client_send_item(RedChannelClient *rcc, RedPipeItem *base)
SPICE_CONTAINEROF(base, RedPingPipeItem, base));
break;
case RED_PIPE_ITEM_TYPE_MAIN_MOUSE_MODE:
- {
- RedMouseModePipeItem *item =
- SPICE_CONTAINEROF(base, RedMouseModePipeItem, base);
- main_channel_marshall_mouse_mode(rcc, m, item);
- break;
- }
+ main_channel_marshall_mouse_mode(rcc, m,
+ SPICE_CONTAINEROF(base, RedMouseModePipeItem, base));
+ break;
case RED_PIPE_ITEM_TYPE_MAIN_AGENT_DISCONNECTED:
main_channel_marshall_agent_disconnected(rcc, m, base);
break;
--
2.5.5
More information about the Spice-devel
mailing list