(MSVC/libretrodb) Build fixes
This commit is contained in:
parent
398a361e05
commit
b7a480afec
|
@ -28,10 +28,10 @@ struct node_iter_ctx
|
||||||
|
|
||||||
static struct rmsgpack_dom_value sentinal;
|
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);
|
fseek(fp, offset, whence);
|
||||||
return ftello(fp);
|
return ftell(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int libretrodb_read_metadata(FILE *fp, libretrodb_metadata_t *md)
|
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)
|
static uint64_t libretrodb_tell(libretrodb_t *db)
|
||||||
{
|
{
|
||||||
return ftello(db->fp);
|
return ftell(db->fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
int libretrodb_create_index(libretrodb_t *db,
|
int libretrodb_create_index(libretrodb_t *db,
|
||||||
|
|
|
@ -707,7 +707,7 @@ static struct buffer parse_table(struct buffer buff,
|
||||||
unsigned i;
|
unsigned i;
|
||||||
const char *ident_name;
|
const char *ident_name;
|
||||||
size_t ident_len;
|
size_t ident_len;
|
||||||
struct argument args[MAX_ARGS] = {{0}};
|
struct argument args[MAX_ARGS];
|
||||||
unsigned argi = 0;
|
unsigned argi = 0;
|
||||||
|
|
||||||
buff = chomp(buff);
|
buff = chomp(buff);
|
||||||
|
|
Loading…
Reference in New Issue