mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Fixing a bunch of compiler warnings.
This commit is contained in:
parent
f1ae48ea53
commit
b790856a40
7 changed files with 10 additions and 9 deletions
|
@ -1145,7 +1145,7 @@ Packet* Packet::Unserialize(UnserialInfo* info)
|
|||
if ( ! info->s->Read((char**) &tag, 0, "tag") )
|
||||
return 0;
|
||||
|
||||
u_char* pkt;
|
||||
char* pkt;
|
||||
int caplen;
|
||||
if ( ! info->s->Read((char**) &pkt, &caplen, "data") )
|
||||
{
|
||||
|
@ -1155,7 +1155,7 @@ Packet* Packet::Unserialize(UnserialInfo* info)
|
|||
|
||||
hdr->caplen = uint32(caplen);
|
||||
p->hdr = hdr;
|
||||
p->pkt = pkt;
|
||||
p->pkt = (u_char*) pkt;
|
||||
p->tag = tag;
|
||||
p->hdr_size = get_link_header_size(p->link_type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue