(getcontact, putcontact, nat_contact): Change nat_contact

to unsigned char to reduce the space required for natstr.
This commit is contained in:
Ron Koenderink 2005-11-18 23:40:30 +00:00
parent ac25058b50
commit 762d39d905
2 changed files with 6 additions and 5 deletions

View file

@ -128,7 +128,7 @@ agecontact(struct natstr *np)
}
}
int
unsigned char
getcontact(struct natstr *np, natid them)
{
return np->nat_contact[them];
@ -159,7 +159,7 @@ putreject(struct natstr *np, natid them, int how, int what)
}
void
putcontact(struct natstr *np, natid them, int contact)
putcontact(struct natstr *np, natid them, unsigned char contact)
{
if (np->nat_contact[them] < contact)
np->nat_contact[them] = contact;