Hello,
   I modified genesys_devices.c, genesys.c , genesys_gl646.c and also
applied patch given in other thread on sane-devel archive
http://lists.alioth.debian.org/pipermail/sane-devel/2005-December/015586.html
  then i use scanimage but i got black image only also head stopped
at other end and i have to manually disconnect it. i made head to stop
after 1755 lines and its stopped exactly at other end of scanner.
 I am attaching modified files diff file from genesys backend.

Regards,
Parag.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 16886 bytes
Desc: not available
Url : 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20051228/c4785829/patch-0001.obj
From henn...@meier-geinitz.de  Wed Dec 28 14:41:02 2005
From: henn...@meier-geinitz.de (Henning Meier-Geinitz)
Date: Wed Dec 28 14:43:52 2005
Subject: [sane-devel] sane-canon: Endian inverted data when scanning
        48bbp   raw mode pnm
In-Reply-To: <200512281343.56824@nirgal>
References: <200512251833.34936@nirgal> <200512271647.22098@nirgal>
        <Pine.HPX.4.61.0512281053150.17439@xenon>
        <200512281343.56824@nirgal>
Message-ID: <20051228144102.gh8...@meier-geinitz.de>

Hi,

On Wed, Dec 28, 2005 at 01:43:55PM +0100, Jean-Michel Vourg?re wrote:
> I'm attaching a patch that I know to work here: It simply adds a #if,
> patch the comment, and moves the definition of b later to avoid a
> compilation warning (unused variable on little-endian comp's).

This won't compile on older C compilers on big endian machines:
canon-sane.c:1792: warning: ISO C90 forbids mixed declarations and code
The problem is the variable definition after the code. Adding a
separate #ifdef for  u_char b and moving it back to the top should work.

Bye,
  henning


Reply via email to