forked from github/server
fix gcc build
This commit is contained in:
parent
fe29f2433a
commit
e300605e87
1 changed files with 1 additions and 9 deletions
|
@ -66,7 +66,7 @@ static int read_seenspells(variant *var, void *owner, struct gamedata *data)
|
||||||
return AT_READ_OK;
|
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;
|
const spell *sp = (const spell *)data;
|
||||||
storage *store = (storage *)more;
|
storage *store = (storage *)more;
|
||||||
WRITE_TOK(store, sp->sname);
|
WRITE_TOK(store, sp->sname);
|
||||||
|
@ -101,14 +101,6 @@ static int read_seenspell(variant *var, void *owner, struct gamedata *data)
|
||||||
return AT_READ_DEPR;
|
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) {
|
static int cmp_spell(const void *a, const void *b) {
|
||||||
const spell *spa = (const spell *)a;
|
const spell *spa = (const spell *)a;
|
||||||
const spell *spb = (const spell *)b;
|
const spell *spb = (const spell *)b;
|
||||||
|
|
Loading…
Reference in a new issue