Fix "warning: assignment from incompatible pointer type".

This commit is contained in:
Eamon Walsh 2008-06-13 21:03:17 -04:00 committed by Eamon Walsh
parent 02a8b118cd
commit 17ed6242e7

View File

@ -295,7 +295,7 @@ GetMotionHistory(DeviceIntPtr pDev, xTimecoord **buff, unsigned long start,
*buff = xalloc(size * pDev->valuator->numMotionEvents);
if (!(*buff))
return 0;
obuff = *buff;
obuff = (char *)*buff;
for (i = pDev->valuator->first_motion;
i != pDev->valuator->last_motion;