* variablen-deklarationen sind in C nur am anfang eines blocks erlaubt

This commit is contained in:
Enno Rehling 2002-03-24 09:57:18 +00:00
parent bf8d75b7a3
commit b0895ad7cd
1 changed files with 4 additions and 4 deletions

View File

@ -86,10 +86,10 @@ addplayer(region *r, const char *email, const struct race * frace, const locale
{
int i;
unit *u;
faction *f;
assert(frace != new_race[RC_ORC]);
faction *f = (faction *) calloc(1, sizeof(faction));
f = calloc(sizeof(faction), 1);
set_string(&f->email, email);