[PATCH] Fix two warnings about incompatible pointer types

Thomas Dickey dickey at radix.net
Wed Feb 4 12:00:14 PST 2009


On Wed, Feb 04, 2009 at 08:36:49PM +0100, Tomas Carnecky wrote:
> diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c
> index 732a1fd..6b9b8f0 100644
> --- a/hw/xfree86/common/xf86Helper.c
> +++ b/hw/xfree86/common/xf86Helper.c
> @@ -2738,5 +2738,5 @@ int
>  xf86GetMotionEvents(DeviceIntPtr pDev, xTimecoord *buff, unsigned long start,
>                      unsigned long stop, ScreenPtr pScreen, BOOL core)
>  {
> -    return GetMotionHistory(pDev, buff, start, stop, pScreen, core);
> +    return GetMotionHistory(pDev, (xTimecoord **) buff, start, stop, pScreen, core);

that presumably quiets a warning, but it's unlikely to be correct.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090204/3ec432b0/attachment.pgp>


More information about the xorg mailing list