mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Fix a compiler warning.
This commit is contained in:
parent
d3d14e10cf
commit
4494643296
3 changed files with 15 additions and 3 deletions
|
@ -351,10 +351,12 @@ public:
|
|||
}
|
||||
|
||||
char Type() { return buffer[0]; }
|
||||
|
||||
RemoteSerializer::PeerID Peer()
|
||||
{
|
||||
// Wow, is this ugly...
|
||||
return ntohl(*(uint32*)(buffer + 4));
|
||||
uint32 tmp;
|
||||
memcpy(&tmp, buffer + 4, sizeof(tmp));
|
||||
return ntohl(tmp);
|
||||
}
|
||||
|
||||
const char* Raw() { return buffer; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue