fix gcc build

This commit is contained in:
Enno Rehling 2018-02-10 17:31:48 +01:00
parent fe29f2433a
commit e300605e87
1 changed files with 1 additions and 9 deletions

View File

@ -66,7 +66,7 @@ static int read_seenspells(variant *var, void *owner, struct gamedata *data)
return AT_READ_OK;
}
static bool cb_write_spell(const void *data, void *more) {
static bool cb_write_spell(void *data, void *more) {
const spell *sp = (const spell *)data;
storage *store = (storage *)more;
WRITE_TOK(store, sp->sname);
@ -101,14 +101,6 @@ static int read_seenspell(variant *var, void *owner, struct gamedata *data)
return AT_READ_DEPR;
}
static void
write_seenspell(const variant *var, const void *owner, struct storage *store)
{
const spell *sp = (const spell *)var->v;
UNUSED_ARG(owner);
WRITE_TOK(store, sp->sname);
}
static int cmp_spell(const void *a, const void *b) {
const spell *spa = (const spell *)a;
const spell *spb = (const spell *)b;