Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178242835
D21408.1796321511.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
800 B
Referenced Files
None
Subscribers
None
D21408.1796321511.diff
View Options
Index: head/sys/kern/subr_compressor.c
===================================================================
--- head/sys/kern/subr_compressor.c
+++ head/sys/kern/subr_compressor.c
@@ -66,8 +66,7 @@
#ifdef GZIO
-#include <sys/gsb_crc32.h>
-#include <sys/zutil.h>
+#include <contrib/zlib/zutil.h>
struct gz_stream {
uint8_t *gz_buffer; /* output buffer */
@@ -141,7 +140,7 @@
s = stream;
s->gz_off = 0;
- s->gz_crc = ~0U;
+ s->gz_crc = crc32(0L, Z_NULL, 0);
(void)deflateReset(&s->gz_stream);
s->gz_stream.avail_out = s->gz_bufsz;
@@ -173,9 +172,8 @@
if (len > 0) {
s->gz_stream.avail_in = len;
s->gz_stream.next_in = data;
- s->gz_crc = crc32_raw(data, len, s->gz_crc);
- } else
- s->gz_crc ^= ~0U;
+ s->gz_crc = crc32(s->gz_crc, data, len);
+ }
error = 0;
do {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 3, 6:11 PM (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42187968
Default Alt Text
D21408.1796321511.diff (800 B)
Attached To
Mode
D21408: GZIO to update zlib version 1.0.4 to 1.2.11.
Attached
Detach File
Event Timeline