mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Changing the HTTP's analyzers internals to use 64-bit integers.
(Gregor Maier). This is the patch from #326, plus some cleanup.
This commit is contained in:
parent
80376653c2
commit
714289bd13
13 changed files with 56 additions and 62 deletions
|
@ -140,7 +140,7 @@ bool ChunkedIOFd::Write(Chunk* chunk)
|
|||
{
|
||||
#ifdef DEBUG
|
||||
DBG_LOG(DBG_CHUNKEDIO, "write of size %d [%s]",
|
||||
chunk->len, fmt_bytes(chunk->data, min(20, chunk->len)));
|
||||
chunk->len, fmt_bytes(chunk->data, min((uint32)20, chunk->len)));
|
||||
#endif
|
||||
|
||||
// Reject if our queue of pending chunks is way too large. Otherwise,
|
||||
|
@ -427,7 +427,7 @@ bool ChunkedIOFd::Read(Chunk** chunk, bool may_block)
|
|||
(*chunk)->len & ~FLAG_PARTIAL,
|
||||
(*chunk)->len & FLAG_PARTIAL ? "(P) " : "",
|
||||
fmt_bytes((*chunk)->data,
|
||||
min(20, (*chunk)->len)));
|
||||
min((uint32)20, (*chunk)->len)));
|
||||
#endif
|
||||
|
||||
if ( ! ((*chunk)->len & FLAG_PARTIAL) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue