Fix compiler warnings.

This commit is contained in:
Jon Siwek 2013-03-07 14:41:18 -06:00
parent 8ee4382721
commit f4d59f8137
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ SerialObj* SerialObj::Unserialize(UnserialInfo* info, SerialType type)
else else
{ {
// Broccoli compatibility mode with 32bit pids. // Broccoli compatibility mode with 32bit pids.
uint32 tmp; uint32 tmp = 0;
result = UNSERIALIZE(&full_obj) && UNSERIALIZE(&tmp); result = UNSERIALIZE(&full_obj) && UNSERIALIZE(&tmp);
pid = tmp; pid = tmp;
} }

View file

@ -336,7 +336,7 @@ ascii2prefix (int family, char *string)
memcpy (save, string, cp - string); memcpy (save, string, cp - string);
save[cp - string] = '\0'; save[cp - string] = '\0';
string = save; string = save;
if (bitlen < 0 || bitlen > maxbitlen) if (bitlen > maxbitlen)
bitlen = maxbitlen; bitlen = maxbitlen;
} }
else { else {