mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
savegame.c: some const void **ptr -> void **ptr, since they're certainly not const
git-svn-id: https://svn.eduke32.com/eduke32@2234 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
74b823d6dc
commit
b5f2955895
1 changed files with 4 additions and 4 deletions
|
@ -1233,7 +1233,7 @@ static int32_t ds_getcnt(const dataspec_t *sp)
|
|||
}
|
||||
}
|
||||
|
||||
static void ds_get(const dataspec_t *sp, const void **ptr, int32_t *cnt)
|
||||
static void ds_get(const dataspec_t *sp, void **ptr, int32_t *cnt)
|
||||
{
|
||||
*cnt = ds_getcnt(sp);
|
||||
|
||||
|
@ -1247,7 +1247,7 @@ static void ds_get(const dataspec_t *sp, const void **ptr, int32_t *cnt)
|
|||
static uint8_t *writespecdata(const dataspec_t *spec, FILE *fil, uint8_t *dump)
|
||||
{
|
||||
int32_t cnt;
|
||||
const void *ptr;
|
||||
void *ptr;
|
||||
const dataspec_t *sp=spec;
|
||||
|
||||
for (; sp->flags!=DS_END; sp++)
|
||||
|
@ -1333,7 +1333,7 @@ static int32_t readspecdata(const dataspec_t *spec, int32_t fil, uint8_t **dumpv
|
|||
continue;
|
||||
}
|
||||
|
||||
ds_get(sp, (const void **)&ptr, &cnt);
|
||||
ds_get(sp, &ptr, &cnt);
|
||||
if (cnt < 0) { OSD_Printf("rsd: cnt<0... wtf?\n"); return -1; }
|
||||
|
||||
if (fil>=0)
|
||||
|
@ -1461,7 +1461,7 @@ static int32_t getnumvar(const dataspec_t *spec)
|
|||
// update dump at *dumpvar with new state and write diff to *diffvar
|
||||
static void cmpspecdata(const dataspec_t *spec, uint8_t **dumpvar, uint8_t **diffvar)
|
||||
{
|
||||
const void *ptr;
|
||||
void *ptr;
|
||||
uint8_t *dump=*dumpvar, *diff=*diffvar, *tmptr;
|
||||
const dataspec_t *sp=spec;
|
||||
int32_t cnt, eltnum=0, nbytes=(getnumvar(spec)+7)>>3, l=Bstrlen(spec->ptr);
|
||||
|
|
Loading…
Reference in a new issue