Commit 26042608 authored by Youness Alaoui's avatar Youness Alaoui

Rename function crc32 to stun_crc32 to avoid conflict with existing crc32 function in libz.so

parent 824a25d1
......@@ -83,7 +83,7 @@ uint32_t stun_fingerprint (const uint8_t *msg, size_t len,
/* first 4 bytes done, last 8 bytes not summed */
data[2].len = len - 12u;
return htonl (crc32 (data, 3, wlm2009_stupid_crc32_typo) ^ 0x5354554e);
return htonl (stun_crc32 (data, 3, wlm2009_stupid_crc32_typo) ^ 0x5354554e);
}
bool stun_message_has_cookie (const StunMessage *msg)
......
......@@ -140,7 +140,7 @@ static const uint32_t crc32_tab[] = {
};
uint32_t crc32 (const crc_data *data, size_t n, bool wlm2009_stupid_crc32_typo)
uint32_t stun_crc32 (const crc_data *data, size_t n, bool wlm2009_stupid_crc32_typo)
{
size_t i;
uint32_t crc = 0xffffffff;
......
......@@ -54,6 +54,6 @@ typedef struct {
} crc_data;
uint32_t crc32 (const crc_data *data, size_t n, bool wlm2009_stupid_crc32_typo);
uint32_t stun_crc32 (const crc_data *data, size_t n, bool wlm2009_stupid_crc32_typo);
#endif /* _CRC32_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment