diff options
author | phk <phk@FreeBSD.org> | 2002-05-29 20:24:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-05-29 20:24:09 +0000 |
commit | 4383144a9a854e7be2909f9e94b9f9461182cf43 (patch) | |
tree | aa4835b198e9244e2c8fa23b274468554c95e009 /sys/net | |
parent | ace1c1caeba5c6d7a88eef9911f7563c35748513 (diff) | |
download | FreeBSD-src-4383144a9a854e7be2909f9e94b9f9461182cf43.zip FreeBSD-src-4383144a9a854e7be2909f9e94b9f9461182cf43.tar.gz |
Add one copy of crc32() and crc32_tab[] in libkern, and remove it two other
places.
Comment out crc32 related definitions in zlib.h, we don't seem to have the
corresponding code in our kernel.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/zlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/zlib.h b/sys/net/zlib.h index a9d3a78..35119fb 100644 --- a/sys/net/zlib.h +++ b/sys/net/zlib.h @@ -88,8 +88,10 @@ extern "C" { # define compress z_compress # define uncompress z_uncompress # define adler32 z_adler32 +#if 0 # define crc32 z_crc32 # define get_crc_table z_get_crc_table +#endif # define Byte z_Byte # define uInt z_uInt @@ -958,6 +960,7 @@ extern uLong EXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); if (adler != original_adler) error(); */ +#if 0 extern uLong EXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); /* Update a running crc with the bytes buf[0..len-1] and return the updated @@ -973,6 +976,7 @@ extern uLong EXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); } if (crc != original_crc) error(); */ +#endif /* various hacks, don't look :) */ |