extern int getrejects(natid them, struct natstr *np);
extern int in_contact(natid, natid);
extern void putrel(struct natstr *np, natid them, int relate);
-extern void putreject(struct natstr *np, natid them, int how, int what);
extern void agecontact(struct natstr *np);
extern int influx(struct natstr *np);
extern struct natstr *nat_reset(struct natstr *, natid, char *, char *,
np->nat_relate[them] = relate;
}
-void
-putreject(struct natstr *np, natid them, int how, int what)
-{
- if (how)
- np->nat_rejects[them] |= what;
- else
- np->nat_rejects[them] &= ~what;
-}
-
int
influx(struct natstr *np)
{
if (CANT_HAPPEN(!np))
return;
- putreject(np, them, how, what);
+ if (how)
+ np->nat_rejects[them] |= what;
+ else
+ np->nat_rejects[them] &= ~what;
putnat(np);
}