From 8ab9e98ce27487c40289664d6cb1a58f963679cb Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 1 Sep 2010 14:10:21 +0300 Subject: rename crc32 to mtd_crc32 Because of namespace collisions mkfs.ubifs uses crc32() implementation from /lib/libz.so.1, which generates incompatible CRC and later on the kernel reports many CRC errors. Fix this by re-naming mtd-utils' crc32 function to mtd_crc32. Reported-by: Jon Povey Signed-off-by: Artem Bityutskiy --- lib/libcrc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libcrc32.c b/lib/libcrc32.c index d47a842..90b916c 100644 --- a/lib/libcrc32.c +++ b/lib/libcrc32.c @@ -94,7 +94,7 @@ static const uint32_t crc32_table[256] = { 0x2d02ef8dL }; -uint32_t crc32(uint32_t val, const void *ss, int len) +uint32_t mtd_crc32(uint32_t val, const void *ss, int len) { const unsigned char *s = ss; -- cgit v1.2.3