diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-23 21:48:58 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-23 21:48:58 +0200 |
| commit | de67a4a721c0fda9a9b5955f235baafba9ba393d (patch) | |
| tree | 38627ee2df6927e715e7043809d281b16abdbddc /ot_fullscrape.c | |
| parent | a8def0e5eac98500267b52c7f0d9a7fbc2145a81 (diff) | |
Rework config file parser and tidy up mem inits
Diffstat (limited to 'ot_fullscrape.c')
| -rw-r--r-- | ot_fullscrape.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ot_fullscrape.c b/ot_fullscrape.c index b800431..39f51ec 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c | |||
| @@ -20,7 +20,6 @@ | |||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | /* Libowfat */ | 22 | /* Libowfat */ |
| 23 | #include "byte.h" | ||
| 24 | #include "io.h" | 23 | #include "io.h" |
| 25 | #include "textcode.h" | 24 | #include "textcode.h" |
| 26 | 25 | ||
| @@ -222,7 +221,7 @@ static void fullscrape_make_gzip(int taskid, ot_tasktype mode) { | |||
| 222 | if (!iovector.iov_base) | 221 | if (!iovector.iov_base) |
| 223 | return; | 222 | return; |
| 224 | 223 | ||
| 225 | byte_zero(&strm, sizeof(strm)); | 224 | memset(&strm, 0, sizeof(strm)); |
| 226 | strm.next_out = (uint8_t *)iovector.iov_base; | 225 | strm.next_out = (uint8_t *)iovector.iov_base; |
| 227 | strm.avail_out = OT_SCRAPE_CHUNK_SIZE; | 226 | strm.avail_out = OT_SCRAPE_CHUNK_SIZE; |
| 228 | if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK) | 227 | if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK) |
