diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-31 02:10:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-31 02:10:51 -0700 |
commit | 62e2b546144401149c17f1216e5bfafb02c0b834 (patch) | |
tree | a78009bba240ff3263aaad26050f03f451445748 | |
parent | 16b3e494a18d011e0abc9aa384c738af689d47f9 (diff) | |
download | txr-62e2b546144401149c17f1216e5bfafb02c0b834.tar.gz txr-62e2b546144401149c17f1216e5bfafb02c0b834.tar.bz2 txr-62e2b546144401149c17f1216e5bfafb02c0b834.zip |
crc32: name clash with Zlib on Android.
* chksum.c (crc32): Stop-gap solution: make it static.
Also, fix wrong self-string.
* chksum.h (crc32): Declaration removed.
-rw-r--r-- | chksum.c | 4 | ||||
-rw-r--r-- | chksum.h | 1 |
2 files changed, 2 insertions, 3 deletions
@@ -314,9 +314,9 @@ static val crc32_str(val str, val init) } -val crc32(val obj, val init) +static val crc32(val obj, val init) { - val self = lit("sha256"); + val self = lit("crc32"); switch (type(obj)) { case STR: @@ -32,7 +32,6 @@ val sha256_begin(void); val sha256_hash(val ctx, val obj); val sha256_end(val ctx, val buf); val crc32_stream(val stream, val nbytes, val init); -val crc32(val obj, val init); val md5_stream(val stream, val nbytes, val buf); val md5(val obj, val buf_in); val md5_begin(void); |