forked from github/server
Kleine Anpassungen (warnings mit gcc)
This commit is contained in:
parent
b18a812fa2
commit
d97ae0f0e0
|
@ -419,7 +419,7 @@ creport_cleanup(void)
|
|||
junkyard = 0;
|
||||
}
|
||||
|
||||
static int msgno;
|
||||
/*static int msgno; */
|
||||
|
||||
#define MTMAXHASH 1023
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ char *agename;
|
|||
int seasons;
|
||||
|
||||
static const char*
|
||||
MailitPath()
|
||||
MailitPath(void)
|
||||
{
|
||||
static const char * value = NULL;
|
||||
if (value==NULL) {
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
#define TEACHNUMBER 10
|
||||
|
||||
static boolean
|
||||
ExpensiveMigrants()
|
||||
ExpensiveMigrants(void)
|
||||
{
|
||||
int value = -1;
|
||||
if (value<0) {
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
|
||||
static boolean
|
||||
CheckOverload()
|
||||
CheckOverload(void)
|
||||
{
|
||||
static int value = -1;
|
||||
if (value<0) {
|
||||
|
|
|
@ -1512,9 +1512,9 @@ addally(const faction * f, ally ** sfp, int aid, int state)
|
|||
if (af!=NULL && af->alliance!=f->alliance) state &= ~ALLIES_ONLY;;
|
||||
# else
|
||||
# endif
|
||||
if (af!=NULL && af->alliance!=f->alliance) return;
|
||||
if (af!=NULL && af->alliance!=f->alliance) return sfp;
|
||||
#endif
|
||||
if (state==0) return;
|
||||
if (state==0) return sfp;
|
||||
|
||||
sf = calloc(1, sizeof(ally));
|
||||
sf->faction = af;
|
||||
|
@ -1523,7 +1523,7 @@ addally(const faction * f, ally ** sfp, int aid, int state)
|
|||
|
||||
while (*sfp) sfp=&(*sfp)->next;
|
||||
*sfp = sf;
|
||||
return &sf;
|
||||
return &sf->next;
|
||||
}
|
||||
|
||||
/** Reads a faction from a file.
|
||||
|
|
Loading…
Reference in New Issue