mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Fix compiler warnings.
This commit is contained in:
parent
8ee4382721
commit
f4d59f8137
2 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ SerialObj* SerialObj::Unserialize(UnserialInfo* info, SerialType type)
|
|||
else
|
||||
{
|
||||
// Broccoli compatibility mode with 32bit pids.
|
||||
uint32 tmp;
|
||||
uint32 tmp = 0;
|
||||
result = UNSERIALIZE(&full_obj) && UNSERIALIZE(&tmp);
|
||||
pid = tmp;
|
||||
}
|
||||
|
|
|
@ -336,7 +336,7 @@ ascii2prefix (int family, char *string)
|
|||
memcpy (save, string, cp - string);
|
||||
save[cp - string] = '\0';
|
||||
string = save;
|
||||
if (bitlen < 0 || bitlen > maxbitlen)
|
||||
if (bitlen > maxbitlen)
|
||||
bitlen = maxbitlen;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue