mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
persistence really works.
It took me way too long to find this - I got the uint8 serialize/deserialize wrong :/
This commit is contained in:
parent
70c020e412
commit
8340af55d1
5 changed files with 50 additions and 9 deletions
|
@ -112,7 +112,6 @@ bool BinarySerializationFormat::Read(uint8* v, const char* tag)
|
|||
if ( ! ReadData(v, sizeof(*v)) )
|
||||
return false;
|
||||
|
||||
*v = ntohs(*v);
|
||||
DBG_LOG(DBG_SERIAL, "Read uint8 %hu [%s]", *v, tag);
|
||||
return true;
|
||||
}
|
||||
|
@ -314,7 +313,6 @@ bool BinarySerializationFormat::Write(char v, const char* tag)
|
|||
bool BinarySerializationFormat::Write(uint8 v, const char* tag)
|
||||
{
|
||||
DBG_LOG(DBG_SERIAL, "Write uint8 %hu [%s]", v, tag);
|
||||
v = htons(v);
|
||||
return WriteData(&v, sizeof(v));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue