[sane-devel] [patch] v4l fix for 64 bits platforms

Henning Meier-Geinitz henning@meier-geinitz.de
Sat, 13 Nov 2004 21:16:51 +0100


Hi,

On Sat, Nov 13, 2004 at 01:47:00PM -0600, Frank Zago wrote:
[-- Anhang #2: sane.diff.part30 --]

Part 30? Looks like you have been quite busy :-)

> --- backend/v4l.c	30 May 2004 13:48:40 -0000	1.16
> +++ backend/v4l.c	13 Nov 2004 19:34:18 -0000
> @@ -986,7 +986,7 @@ sane_start (SANE_Handle handle)
>  	   s->mbuf.size, s->mbuf.frames, s->mbuf.offsets[0]);
>        buffer =
>  	mmap (0, s->mbuf.size, PROT_READ | PROT_WRITE, MAP_SHARED, s->fd, 0);
> -      if ((int) buffer == -1)
> +      if (buffer == (void *)-1)

It's in CVS now, thanks.

Bye,
  Henning