(MSVC) Build fixes

This commit is contained in:
twinaphex 2015-01-23 22:48:31 +01:00
parent 1a9f449362
commit aeab1a831c
2 changed files with 3 additions and 4 deletions

View File

@ -2280,7 +2280,6 @@ static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
/* HACK - we have to find some way to pass state inbetween
* function pointer callback functions that don't necessarily
* call each other. */
static char core_manager_path[PATH_MAX_LENGTH];
static void *core_manager_list_data;
static char core_manager_list_path[PATH_MAX_LENGTH];
static char core_manager_list_label[PATH_MAX_LENGTH];

View File

@ -360,7 +360,7 @@ bool net_http_update(http_t *state, size_t* progress, size_t* total)
if (state->bodytype == t_full)
{
state->part = p_done;
state->data = realloc(state->data, state->len);
state->data = (char*)realloc(state->data, state->len);
}
else
goto fail;
@ -413,7 +413,7 @@ parse_again:
{
state->part = p_done;
state->len = state->pos;
state->data = realloc(state->data, state->len);
state->data = (char*)realloc(state->data, state->len);
}
goto parse_again;
}
@ -443,7 +443,7 @@ parse_again:
if (state->pos == state->len)
{
state->part=p_done;
state->data = realloc(state->data, state->len);
state->data = (char*)realloc(state->data, state->len);
}
if (state->pos > state->len)
goto fail;