[sane-devel] [patch] v4l fix for 64 bits platforms
Frank Zago
fzago@austin.rr.com
Sat, 13 Nov 2004 13:47:00 -0600
This is a multi-part message in MIME format.
--------------010607050104040304090109
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
--------------010607050104040304090109
Content-Type: text/plain;
name="sane.diff.part30"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="sane.diff.part30"
--- 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)
{
DBG (1, "sane_start: mmap failed: %s\n", strerror (errno));
return SANE_STATUS_IO_ERROR;
--------------010607050104040304090109--