mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Android) Warning fixes
This commit is contained in:
parent
485d646e90
commit
f0f9847647
@ -1920,7 +1920,7 @@ static uint64_t frontend_linux_get_mem_total(void)
|
||||
|
||||
while (fgets(line, sizeof(line), data))
|
||||
{
|
||||
if (sscanf(line, "MemTotal: " STRING_REP_ULONG " kB", &total) == 1)
|
||||
if (sscanf(line, "MemTotal: " STRING_REP_ULONG " kB", (size_t*)&total) == 1)
|
||||
{
|
||||
fclose(data);
|
||||
total *= 1024;
|
||||
@ -1945,13 +1945,13 @@ static uint64_t frontend_linux_get_mem_used(void)
|
||||
|
||||
while (fgets(line, sizeof(line), data))
|
||||
{
|
||||
if (sscanf(line, "MemTotal: " STRING_REP_ULONG " kB", &total) == 1)
|
||||
if (sscanf(line, "MemTotal: " STRING_REP_ULONG " kB", (size_t*)&total) == 1)
|
||||
total *= 1024;
|
||||
if (sscanf(line, "MemFree: " STRING_REP_ULONG " kB", &freemem) == 1)
|
||||
if (sscanf(line, "MemFree: " STRING_REP_ULONG " kB", (size_t*)&freemem) == 1)
|
||||
freemem *= 1024;
|
||||
if (sscanf(line, "Buffers: " STRING_REP_ULONG " kB", &buffers) == 1)
|
||||
if (sscanf(line, "Buffers: " STRING_REP_ULONG " kB", (size_t*)&buffers) == 1)
|
||||
buffers *= 1024;
|
||||
if (sscanf(line, "Cached: " STRING_REP_ULONG " kB", &cached) == 1)
|
||||
if (sscanf(line, "Cached: " STRING_REP_ULONG " kB", (size_t*)&cached) == 1)
|
||||
cached *= 1024;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user