1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

C89 buildfix

This commit is contained in:
twinaphex 2019-01-12 18:15:49 +01:00
parent 6048eba78a
commit 0f8cf1a579

View File

@ -2571,10 +2571,11 @@ enum
static int cheevos_iterate(coro_t *coro) static int cheevos_iterate(coro_t *coro)
{ {
ssize_t num_read = 0; const int SNES_HEADER_LEN = 0x200;
size_t to_read = 4096; ssize_t num_read = 0;
uint8_t *buffer = NULL; size_t to_read = 4096;
const char *end = NULL; uint8_t *buffer = NULL;
const char *end = NULL;
static const uint32_t genesis_exts[] = static const uint32_t genesis_exts[] =
{ {
@ -2903,8 +2904,6 @@ found:
/* Checks for the existence of a headered SNES file. /* Checks for the existence of a headered SNES file.
Unheadered files fall back to GENERIC_MD5. */ Unheadered files fall back to GENERIC_MD5. */
const int SNES_HEADER_LEN = 0x200;
if (coro->len < 0x2000 || coro->len % 0x2000 != SNES_HEADER_LEN) if (coro->len < 0x2000 || coro->len % 0x2000 != SNES_HEADER_LEN)
{ {
coro->gameid = 0; coro->gameid = 0;