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

Christophe Fergeau cfergeau at redhat.com
Thu Dec 8 07:16:16 PST 2011


Vala changing behaviour of the code it generates with no warnings? Nice....

Christophe

On Thu, Dec 08, 2011 at 03:12:51PM +0100, 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)
> -- 
> 1.7.7.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20111208/9663b689/attachment.pgp>


More information about the Spice-devel mailing list