From b7a480afec0757775cd4ef577e8827f1881b77c9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 8 Jun 2015 00:26:58 +0200 Subject: [PATCH] (MSVC/libretrodb) Build fixes --- libretro-db/libretrodb.c | 8 ++++---- libretro-db/query.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libretro-db/libretrodb.c b/libretro-db/libretrodb.c index 9523582d94..20834ac3dd 100644 --- a/libretro-db/libretrodb.c +++ b/libretro-db/libretrodb.c @@ -28,10 +28,10 @@ struct node_iter_ctx static struct rmsgpack_dom_value sentinal; -static inline off_t flseek(FILE *fp, off_t offset, int whence) +static inline off_t flseek(FILE *fp, int offset, int whence) { - fseeko(fp, offset, whence); - return ftello(fp); + fseek(fp, offset, whence); + return ftell(fp); } static int libretrodb_read_metadata(FILE *fp, libretrodb_metadata_t *md) @@ -395,7 +395,7 @@ static int node_iter(void * value, void * ctx) static uint64_t libretrodb_tell(libretrodb_t *db) { - return ftello(db->fp); + return ftell(db->fp); } int libretrodb_create_index(libretrodb_t *db, diff --git a/libretro-db/query.c b/libretro-db/query.c index c7df437247..cc41866718 100644 --- a/libretro-db/query.c +++ b/libretro-db/query.c @@ -707,7 +707,7 @@ static struct buffer parse_table(struct buffer buff, unsigned i; const char *ident_name; size_t ident_len; - struct argument args[MAX_ARGS] = {{0}}; + struct argument args[MAX_ARGS]; unsigned argi = 0; buff = chomp(buff);