mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
silence linux warning
This commit is contained in:
parent
ad6733b519
commit
79899e6b71
@ -329,13 +329,13 @@ struct http_t *net_http_new(struct http_connection_t *conn)
|
|||||||
|
|
||||||
post_len = strlen(conn->postdatacopy);
|
post_len = strlen(conn->postdatacopy);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
len = snprintf(NULL, 0, "%I64u", (long long unsigned)post_len);
|
len = snprintf(NULL, 0, "%I64u", post_len);
|
||||||
len_str = (char*)malloc(len + 1);
|
len_str = (char*)malloc(len + 1);
|
||||||
snprintf(len_str, len + 1, "%I64u", (long long unsigned)post_len);
|
snprintf(len_str, len + 1, "%I64u", post_len);
|
||||||
#else
|
#else
|
||||||
len = snprintf(NULL, 0, "%llu", post_len);
|
len = snprintf(NULL, 0, "%llu", (long long unsigned)post_len);
|
||||||
len_str = (char*)malloc(len + 1);
|
len_str = (char*)malloc(len + 1);
|
||||||
snprintf(len_str, len + 1, "%llu", post_len);
|
snprintf(len_str, len + 1, "%llu", (long long unsigned)post_len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
len_str[len] = '\0';
|
len_str[len] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user