]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: clean up zlib.h usage a bit
authorMike Frysinger <vapier@gentoo.org>
Thu, 23 Sep 2010 02:32:56 +0000 (22:32 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 23 Sep 2010 13:35:28 +0000 (16:35 +0300)
commitb864c387e8f16273aad1453d6457d847e29c3d25
tree0060a2d3a8ab1eca6b81eec12a82513fd637aceb
parent5ac748832661e7924bafd06830a247b6ff34c8c3
mtd-utils: clean up zlib.h usage a bit

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@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
compr_zlib.c
jffs2reader.c
mkfs.jffs2.c
mkfs.ubifs/compr.c