[Spice-devel] [PATCH v2 6/7] spice-ppc: fix wrong variable type and name

Erlon Cruz erlon.cruz at br.flextronics.com
Mon Aug 13 07:14:32 PDT 2012


Signed-off-by: Erlon R. Cruz <erlon.cruz at br.flextronics.com>
Signed-off-by: Rafael F. Santos <fonsecasantos.rafael at gmail.com>
Signed-off-by: Fabiano Fidêncio <Fabiano.Fidêncio at fit-tecnologia.org.br>
---
 server/inputs_channel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/inputs_channel.c b/server/inputs_channel.c
index aa1cba9..bc0a181 100644
--- a/server/inputs_channel.c
+++ b/server/inputs_channel.c
@@ -300,8 +300,8 @@ static int inputs_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, ui
         }
     }
     case SPICE_MSGC_INPUTS_KEY_UP: {
-        SpiceMsgcKeyDown *key_down = (SpiceMsgcKeyDown *)message;
-        uint32_t code = key_down->code;
+        SpiceMsgcKeyUp *key_up = (SpiceMsgcKeyUp *)message;
+        uint32_t code = key_up->code;
 
         for (; code != 0; code >>= 8) {
             kbd_push_scan(keyboard, code & 0xff);
-- 
1.7.4.1



More information about the Spice-devel mailing list