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

Marc-André Lureau marcandre.lureau at gmail.com
Thu Dec 8 06:12:51 PST 2011


---
 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



More information about the Spice-devel mailing list