(getcontact, putcontact, nat_contact): Change nat_contact
to unsigned char to reduce the space required for natstr.
This commit is contained in:
parent
ac25058b50
commit
762d39d905
2 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue