Change setrel(), setcont(), setrej() to return void

Nobody cares for their value anyway.
This commit is contained in:
Markus Armbruster 2011-02-05 09:30:12 +01:00
parent a302bde1fb
commit d4f0cb3576
2 changed files with 12 additions and 15 deletions

View file

@ -41,7 +41,7 @@
#include "prototypes.h"
#include "server.h"
int
void
setrel(natid us, natid them, int rel)
{
struct natstr *mynp = getnatp(us);
@ -59,9 +59,10 @@ setrel(natid us, natid them, int rel)
if (CANT_HAPPEN(rel > ALLIED))
rel = ALLIED;
if (CANT_HAPPEN(!mynp || !themnp))
return RET_FAIL;
if ((oldrel = getrel(mynp, them)) == rel)
return RET_FAIL;
return;
oldrel = getrel(mynp, them);
if (oldrel == rel)
return;
themname = cname(them);
if (rel > oldrel)
whichway = "upgraded";
@ -109,30 +110,26 @@ setrel(natid us, natid them, int rel)
}
if (opt_HIDDEN)
setcont(them, us, FOUND_TELE);
return RET_OK;
}
int
void
setcont(natid us, natid them, int contact)
{
struct natstr *np = getnatp(us);
if (CANT_HAPPEN(!np))
return 0;
return;
putcontact(np, them, contact);
putnat(np);
return 1;
}
int
void
setrej(natid us, natid them, int how, int what)
{
struct natstr *np = getnatp(us);
if (CANT_HAPPEN(!np))
return 0;
return;
putreject(np, them, how, what);
putnat(np);
return 1;
}