]> www.infradead.org Git - mtd-utils.git/commit
mkfs.jffs2: fix lzo usage on 64bit systems
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Mon, 23 Feb 2009 21:38:54 +0000 (22:38 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 24 Feb 2009 09:35:51 +0000 (11:35 +0200)
commite6801464b5bb61a5ae3c8ce57493e621f9f6252b
tree648e1819e394b041b66cdc47c74e8d180f210bf1
parentcca27d4c0819ae244b33639a19bec82cc2895704
mkfs.jffs2: fix lzo usage on 64bit systems

the compress size parameter in lzo is defined in the header file as lzo_uint.
This looks very much like uint32_t, I know, but is defined as unsigned long.
So on 64bit LE systems we zero some bytes near by and on BE systems we
get a size of zero.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
compr_lzo.c