contact: Inline putcontact() into its only caller setcont()

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-10-23 17:52:17 +02:00
parent cf4e9bc89d
commit 00d0664bcd
3 changed files with 9 additions and 15 deletions

View file

@ -128,18 +128,6 @@ putreject(struct natstr *np, natid them, int how, int what)
np->nat_rejects[them] &= ~what;
}
void
putcontact(struct natstr *np, natid them, int contact)
{
if (CANT_HAPPEN(contact < 0))
contact = 0;
if (CANT_HAPPEN(contact > 255))
contact = 255;
if (np->nat_contact[them] < contact)
np->nat_contact[them] = contact;
}
int
influx(struct natstr *np)
{