diff options
author | Gustavo Zacarias | 2016-10-10 22:54:24 +0200 |
---|---|---|
committer | Karel Zak | 2016-10-19 12:11:59 +0200 |
commit | 7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1 (patch) | |
tree | eeca870689c5084128ffa5a49c845d2c19df308c /libfdisk | |
parent | fstrim: add -v to the systemd service (diff) | |
download | kernel-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 'libfdisk')
-rw-r--r-- | libfdisk/src/gpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index 837719258..208699bfc 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -850,7 +850,7 @@ fail: static inline uint32_t count_crc32(const unsigned char *buf, size_t len, size_t ex_off, size_t ex_len) { - return (crc32_exclude_offset(~0L, buf, len, ex_off, ex_len) ^ ~0L); + return (ul_crc32_exclude_offset(~0L, buf, len, ex_off, ex_len) ^ ~0L); } static inline uint32_t gpt_header_count_crc32(struct gpt_header *header) |