system: Silence warning (Linux).

This commit is contained in:
Alastair Poole 2020-02-26 21:39:13 +00:00
parent 6e895b3490
commit c510bf0343
1 changed files with 2 additions and 0 deletions

View File

@ -89,11 +89,13 @@
#define RESULTS_MEM_GB 0x80
#define RESULTS_CPU_CORES 0x100
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
static void
_memsize_bytes_to_kb(unsigned long *bytes)
{
*bytes = (unsigned int)*bytes >> 10;
}
#endif
#if defined(__linux__)
static char *