Comment out unused upx_crc32().

This commit is contained in:
Markus F.X.J. Oberhumer
2006-06-16 14:08:56 +02:00
parent 7817e88d03
commit 12ba7776b3
+11 -4
View File
@@ -29,6 +29,7 @@
#include "conf.h" #include "conf.h"
#include "compress.h" #include "compress.h"
#include "mem.h" #include "mem.h"
#include <zlib.h>
/************************************************************************* /*************************************************************************
@@ -40,25 +41,31 @@ unsigned upx_adler32(const void *buf, unsigned len, unsigned adler)
if (len == 0) if (len == 0)
return adler; return adler;
assert(buf != NULL); assert(buf != NULL);
#if defined(WITH_UCL) #if 0
return ucl_adler32(adler, (const ucl_bytep)buf, len); return adler32(adler, (const Bytef *) buf, len); // zlib
#elif defined(WITH_UCL)
return ucl_adler32(adler, (const ucl_bytep) buf, len);
#else #else
# error # error
#endif #endif
} }
#if 0 /* UNUSED */
unsigned upx_crc32(const void *buf, unsigned len, unsigned crc) unsigned upx_crc32(const void *buf, unsigned len, unsigned crc)
{ {
if (len == 0) if (len == 0)
return crc; return crc;
assert(buf != NULL); assert(buf != NULL);
#if defined(WITH_UCL) #if 0
return ucl_crc32(crc, (const ucl_bytep)buf, len); return crc32(crc, (const Bytef *) buf, len); // zlib
#elif defined(WITH_UCL)
return ucl_crc32(crc, (const ucl_bytep) buf, len);
#else #else
# error # error
#endif #endif
} }
#endif /* UNUSED */
/************************************************************************* /*************************************************************************