[Spice-devel] [PATCH spice-server 5/9] main-channel: Remove brackets if not needed

Victor Toso victortoso at redhat.com
Tue Dec 5 10:13:17 UTC 2017


On Tue, Dec 05, 2017 at 08:41:08AM +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

Acked-by: Victor Toso <victortoso at redhat.com>

> ---
>  server/main-channel.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/server/main-channel.c b/server/main-channel.c
> index f5c079f3..34f54768 100644
> --- a/server/main-channel.c
> +++ b/server/main-channel.c
> @@ -177,10 +177,9 @@ static bool main_channel_handle_message(RedChannelClient *rcc, uint16_t type,
>          reds_on_main_agent_start(reds, mcc, tokens->num_tokens);
>          break;
>      }
> -    case SPICE_MSGC_MAIN_AGENT_DATA: {
> +    case SPICE_MSGC_MAIN_AGENT_DATA:
>          reds_on_main_agent_data(reds, mcc, message, size);
>          break;
> -    }
>      case SPICE_MSGC_MAIN_AGENT_TOKEN: {
>          SpiceMsgcMainAgentTokens *tokens;
>  
> @@ -211,10 +210,9 @@ static bool main_channel_handle_message(RedChannelClient *rcc, uint16_t type,
>      case SPICE_MSGC_MAIN_MOUSE_MODE_REQUEST:
>          reds_on_main_mouse_mode_request(reds, message, size);
>          break;
> -    case SPICE_MSGC_PONG: {
> +    case SPICE_MSGC_PONG:
>          main_channel_client_handle_pong(mcc, (SpiceMsgPing *)message, size);
>          break;
> -    }
>      case SPICE_MSGC_DISCONNECTING:
>          break;
>      case SPICE_MSGC_MAIN_MIGRATE_END:
> -- 
> 2.14.3
> 
> _______________________________________________
> 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: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20171205/02d05c25/attachment.sig>


More information about the Spice-devel mailing list