mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Cleanup
This commit is contained in:
parent
6958a23b96
commit
6750d74e46
@ -24,17 +24,15 @@
|
|||||||
|
|
||||||
int net_http_get(const char **result, size_t *size, const char *url, retro_time_t *timeout)
|
int net_http_get(const char **result, size_t *size, const char *url, retro_time_t *timeout)
|
||||||
{
|
{
|
||||||
retro_time_t t0;
|
|
||||||
uint8_t* data;
|
uint8_t* data;
|
||||||
size_t length;
|
size_t length;
|
||||||
char* res;
|
char* res;
|
||||||
int ret = NET_HTTP_GET_OK;
|
int ret = NET_HTTP_GET_OK;
|
||||||
struct http_connection_t* conn = NULL;
|
|
||||||
struct http_t* http = NULL;
|
struct http_t* http = NULL;
|
||||||
|
retro_time_t t0 = retro_get_time_usec();
|
||||||
|
struct http_connection_t *conn = net_http_connection_new(url);
|
||||||
|
|
||||||
*result = NULL;
|
*result = NULL;
|
||||||
t0 = retro_get_time_usec();
|
|
||||||
conn = net_http_connection_new(url);
|
|
||||||
|
|
||||||
/* Error creating the connection descriptor. */
|
/* Error creating the connection descriptor. */
|
||||||
if (!conn)
|
if (!conn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user