[Spice-devel] [PATCH spice-gtk 04/11] Fix controller with newer vala

Hans de Goede hdegoede at redhat.com
Thu Dec 8 06:53:33 PST 2011


ACK.

On 12/08/2011 03:12 PM, Marc-André Lureau wrote:
> ---
>   gtk/controller/controller.vala |    8 ++++----
>   1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/gtk/controller/controller.vala b/gtk/controller/controller.vala
> index af0f800..e33278f 100644
> --- a/gtk/controller/controller.vala
> +++ b/gtk/controller/controller.vala
> @@ -76,9 +76,9 @@ public class Controller: Object {
>   	private int nclients;
>   	List<IOStream>  clients;
>
> -	private bool handle_message (SpiceProtocol.Controller.Msg msg) {
> -		var v = (SpiceProtocol.Controller.MsgValue*)(&msg);
> -		var d = (SpiceProtocol.Controller.MsgData*)(&msg);
> +	private bool handle_message (SpiceProtocol.Controller.Msg* msg) {
> +		var v = (SpiceProtocol.Controller.MsgValue*)(msg);
> +		var d = (SpiceProtocol.Controller.MsgData*)(msg);
>   		unowned string str = (string)(&d.data);
>
>   		switch (msg.id) {
> @@ -209,7 +209,7 @@ public class Controller: Object {
>   					break;
>   			}
>
> -			handle_message (*msg);
> +			handle_message (msg);
>   		}
>
>   		if (excl)


More information about the Spice-devel mailing list