version 1.33 | | version 1.34 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.33 2003/09/13 05:01:27 mwedel Exp $"; | | * "$Id: init.c,v 1.34 2004/02/16 20:03:10 tanner Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* correspond to. | | * correspond to. |
*/ | | */ |
struct Settings settings = { | | struct Settings settings = { |
"", /* Logfile */ | | "/var/log/crossfire/logfile", /* Logfile */ |
CSPORT, /* Client/server port */ | | CSPORT, /* Client/server port */ |
| | |
/* Debug level */ | | /* Debug level */ |
| | |
if (settings.logfilename[0] == 0) { | | if (settings.logfilename[0] == 0) { |
logfile = stderr; | | logfile = stderr; |
} | | } |
else if ((logfile=fopen(settings.logfilename, "w"))==NULL) { | | else if ((logfile=fopen(settings.logfilename, "a"))==NULL) { |
fprintf(stderr,"Unable to open %s as the logfile - will use stderr instead\n", | | fprintf(stderr,"Unable to open %s as the logfile - will use stderr instead\n", |
settings.logfilename); | | settings.logfilename); |
logfile = stderr; | | logfile = stderr; |