From 50385e06ec207af0171c021f1909e9ef38c00519 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 18 Aug 2019 16:09:31 +0200 Subject: Replace update_crc32 helper function with crc32 from zlib It is optimized to the maximum and if we already use zlib anyway, why not use zlib crc32? This also makes zlib a hard dependency which also means the whole "do we have a compressor" sanity check in the build system can be removed. Signed-off-by: David Oberhollenzer --- include/util.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h index 82e3177..99418f9 100644 --- a/include/util.h +++ b/include/util.h @@ -81,8 +81,6 @@ int popd(void); */ int padd_file(int outfd, uint64_t size, size_t blocksize); -uint32_t update_crc32(uint32_t crc, const void *data, size_t size); - /* If the environment variable SOURCE_DATE_EPOCH is set to a parsable number that fits into an unsigned 32 bit value, return its value. Otherwise, -- cgit v1.2.3