kleine compile-fixes

This commit is contained in:
Enno Rehling 2004-08-22 09:54:39 +00:00
parent db1a75f032
commit 97bec20e4b
5 changed files with 8 additions and 8 deletions

View File

@ -1492,7 +1492,7 @@ readfaction(FILE * F)
int planes;
int i = rid(F);
faction * f = findfaction(i);
char * email;
char * email = NULL;
if (f==NULL) {
f = (faction *) calloc(1, sizeof(faction));

View File

@ -348,9 +348,7 @@ guardian_faction(plane * pl, int id)
f->banner = strdup("Sie dienen dem großen Wyrm");
f->passw = strdup(itoa36(rand()));
f->override = strdup(itoa36(rand()));
if (set_email(&f->email, "igjarjuk@eressea.de")!=0) {
log_error(("Invalid email address: %s\n", email));
}
set_email(&f->email, "igjarjuk@eressea.de");
f->name = strdup("Igjarjuks Kundschafter");
f->race = new_race[RC_ILLUSION];
f->age = turn;

View File

@ -140,7 +140,7 @@ spc_email_isvalid(const char *address)
{
int count = 0;
const char *c, *domain;
static char *rfc822_specials = "()<>@,;:\\\"[]";
static const char *rfc822_specials = "()<>@,;:\\\"[]";
/* first we validate the name portion (name@domain) */
for (c = address; *c; c++) {

View File

@ -33,7 +33,8 @@
#include <kernel/unit.h>
/* util includes */
#include <base36.h>
#include <util/base36.h>
#include <util/goodies.h>
#include <language.h>
/* libc includes */

View File

@ -60,7 +60,8 @@
#include <kernel/xmlreader.h>
/* util includes */
#include <base36.h>
#include <util/base36.h>
#include <util/goodies.h>
/* libc includes */
#include <ctype.h>