aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 12:57:17 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 12:58:56 +0900
commitf0153bc7fe7fd79ef2b1b41d259adf3d20b9d641 (patch)
tree97c2708c9b7f2c31659c426966d2730aa5b05d96
parent6209fecf3a11e90e2e5efc057cf650f4ab792b50 (diff)
v4l: fix [-Werror=sign-compare] compiler warning
-rw-r--r--backend/v4l.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/v4l.c b/backend/v4l.c
index 9c1d61f..1e032c7 100644
--- a/backend/v4l.c
+++ b/backend/v4l.c
@@ -961,7 +961,7 @@ sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
SANE_Status
sane_start (SANE_Handle handle)
{
- int len, loop;
+ int len;
V4L_Scanner *s;
char data;
@@ -997,6 +997,7 @@ sane_start (SANE_Handle handle)
}
else
{
+ int loop;
s->is_mmap = SANE_TRUE;
DBG (3,
"sane_start: mmap frame, buffersize: %d bytes, buffers: %d, offset 0 %d\n",
@@ -1045,6 +1046,7 @@ sane_start (SANE_Handle handle)
/* v4l1 actually returns BGR when we ask for RGB, so convert it */
if (s->pict.palette == VIDEO_PALETTE_RGB24)
{
+ __u32 loop;
DBG (3, "sane_start: converting from BGR to RGB\n");
for (loop = 0; loop < (s->window.width * s->window.height * 3); loop += 3)
{