[PATCH] test: fix input test

Dave Airlie airlied at gmail.com
Wed Oct 12 01:59:38 PDT 2011


From: Dave Airlie <airlied at redhat.com>

The test was memsetting the wrong thing, this fixes make check in my tinderbox.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 test/input.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/input.c b/test/input.c
index afc4d4d..b272e0a 100644
--- a/test/input.c
+++ b/test/input.c
@@ -1315,11 +1315,11 @@ static void dix_get_master(void)
     memset(&kbd, 0, sizeof(DeviceIntRec));
     memset(&floating, 0, sizeof(DeviceIntRec));
 
-    memset(&vcp_sprite, 0, sizeof(DeviceIntRec));
-    memset(&vck_sprite, 0, sizeof(DeviceIntRec));
-    memset(&ptr_sprite, 0, sizeof(DeviceIntRec));
-    memset(&kbd_sprite, 0, sizeof(DeviceIntRec));
-    memset(&floating_sprite, 0, sizeof(DeviceIntRec));
+    memset(&vcp_sprite, 0, sizeof(SpriteInfoRec));
+    memset(&vck_sprite, 0, sizeof(SpriteInfoRec));
+    memset(&ptr_sprite, 0, sizeof(SpriteInfoRec));
+    memset(&kbd_sprite, 0, sizeof(SpriteInfoRec));
+    memset(&floating_sprite, 0, sizeof(SpriteInfoRec));
 
     vcp.type = MASTER_POINTER;
     vck.type = MASTER_KEYBOARD;
-- 
1.7.6.4



More information about the xorg-devel mailing list