[PATCH] mtd-utils: clean up zlib.h usage a bit

Artem Bityutskiy dedekind1 at gmail.com
Thu Sep 23 09:36:30 EDT 2010


On Wed, 2010-09-22 at 22:32 -0400, Mike Frysinger wrote:
> Hide zlib's crc32 in compr_zlib.c and mkfs.ubifs/compr.c.
> 
> jffs2reader.c and mkfs.jffs2.c don't actually use zlib, so punt the
> include from the file.
> 
> mkfs.jffs2.c is implicitly using crc32 from zlib.h instead of the
> local mtd_crc32, so fix the local usage.  otherwise we get warnings
> about undefined crc32 because the file was redirecting the prototype.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>

Pushed to mtd-utils, thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list