summaryrefslogtreecommitdiffstats
path: root/include/crc32.h
diff options
context:
space:
mode:
authorGustavo Zacarias2016-10-10 22:54:24 +0200
committerKarel Zak2016-10-19 12:11:59 +0200
commit7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1 (patch)
treeeeca870689c5084128ffa5a49c845d2c19df308c /include/crc32.h
parentfstrim: add -v to the systemd service (diff)
downloadkernel-qcow2-util-linux-7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1.tar.gz
kernel-qcow2-util-linux-7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1.tar.xz
kernel-qcow2-util-linux-7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1.zip
lib/crc32: prefix public functions
Make the publicly-visible crc32 library functions prefixed by ul_, such as crc32() -> ul_crc32(). This is because it clashes with the crc32() function from zlib. For newer versions of glib (2.50+) zlib and libblkid are required dependencies and otherwise results in build failure when building statically. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Diffstat (limited to 'include/crc32.h')
-rw-r--r--include/crc32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/crc32.h b/include/crc32.h
index ff2dd99d8..2551f50de 100644
--- a/include/crc32.h
+++ b/include/crc32.h
@@ -4,8 +4,8 @@
#include <sys/types.h>
#include <stdint.h>
-extern uint32_t crc32(uint32_t seed, const unsigned char *buf, size_t len);
-extern uint32_t crc32_exclude_offset(uint32_t seed, const unsigned char *buf, size_t len,
+extern uint32_t ul_crc32(uint32_t seed, const unsigned char *buf, size_t len);
+extern uint32_t ul_crc32_exclude_offset(uint32_t seed, const unsigned char *buf, size_t len,
size_t exclude_off, size_t exclude_len);
#endif