summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2008-12-11 15:54:15 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2008-12-12 11:43:32 +1000
commitd961abb59f0a8bee4bd11b1540aa43ff83cddbb8 (patch)
tree64919fe57d2f91e671ab897617f90f525a5e9393 /dix
parentcb95642dc8edebb2935dd471f8b339cb98aa8481 (diff)
dix: fix compiler warning (mixing declarations + statements)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r--dix/devices.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/devices.c b/dix/devices.c
index d8cc15691..d1043db27 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -2571,11 +2571,11 @@ AttachDevice(ClientPtr client, DeviceIntPtr dev, DeviceIntPtr master)
/* XXX: reset to defaults */
EventList event = { NULL, 0};
char* classbuf;
+ deviceClassesChangedEvent *dcce;
/* Send event to clients */
CreateClassesChangedEvent(&event, oldmaster, oldmaster);
- deviceClassesChangedEvent *dcce =
- (deviceClassesChangedEvent*)event.event;
+ dcce = (deviceClassesChangedEvent*)event.event;
dcce->deviceid = oldmaster->id;
dcce->num_classes = 0;
classbuf = (char*)&event.event[1];