mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge branch 'misc_cleanup' of https://github.com/MaxKellermann/zeek
- Minor code formatting change in merge * 'misc_cleanup' of https://github.com/MaxKellermann/zeek: Desc: move realloc() call out of the loop SerializationFormat: move realloc() call out of the loop PacketDumper: remove unused types
This commit is contained in:
commit
e2e90ac477
3 changed files with 4 additions and 24 deletions
|
@ -376,10 +376,9 @@ void ODesc::AddBytesRaw(const void* bytes, unsigned int n)
|
|||
void ODesc::Grow(unsigned int n)
|
||||
{
|
||||
while ( offset + n + SLOP >= size )
|
||||
{
|
||||
size *= 2;
|
||||
base = safe_realloc(base, size);
|
||||
}
|
||||
|
||||
base = safe_realloc(base, size);
|
||||
}
|
||||
|
||||
void ODesc::Clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue